mirror of
https://git.savannah.gnu.org/git/coreutils.git
synced 2026-11-17 18:02:09 +03:00
tests: runcon: fix new test to skip on non SELinux systems
* tests/misc/runcon-compute.sh: Use our new internal error 125 status to detect SELinux errors, and skip in this case.
This commit is contained in:
1 parent
af231b6c4f
commit
b3bb2b707c
1 file changed
+3
-1
@@ -23,6 +23,8 @@ print_ver_ runcon
|
||||
printf '%s\n' '#!/bin/sh' 'exit 1' >> 'true' || framework_failure_
|
||||
chmod a+x 'true' || framework_failure_
|
||||
|
||||
returns_ 1 runcon -c true || fail=1
|
||||
runcon -c true; ret=$?
|
||||
test "$ret" = 125 && skip_ 'runcon setup failed'
|
||||
test "$ret" = 1 || fail=1
|
||||
|
||||
Exit $fail
|
||||
Reference in new issue
Block a user