diff options
Diffstat (limited to 'tests/misc/chcon')
-rwxr-xr-x | tests/misc/chcon | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/tests/misc/chcon b/tests/misc/chcon index e637893ef..d7a9c5f31 100755 --- a/tests/misc/chcon +++ b/tests/misc/chcon @@ -9,16 +9,7 @@ fi . $top_srcdir/tests/test-lib.sh require_root_ require_selinux_ - -# When mcstransd is running, you'll see only the 3-component -# version of file-system context strings. Detect that, -# and if it's running, skip this test. -ctx=$(stat --printf='%C\n' .) || framework_failure -case $ctx in - *:*:*:*) ;; # four components is ok - *) # anything else probably means mcstransd is running - skip_test_ "unexpected context '$ctx'; turn off mcstransd" ;; -esac +skip_if_mcstransd_is_running_ mkdir -p d/sub/s2 || framework_failure touch f g d/sub/1 d/sub/2 || framework_failure |