diff options
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/cp/cp-a-selinux | 3 | ||||
-rwxr-xr-x | tests/rm/fail-2eperm | 3 |
2 files changed, 3 insertions, 3 deletions
diff --git a/tests/cp/cp-a-selinux b/tests/cp/cp-a-selinux index feb66f9ac..03d515399 100755 --- a/tests/cp/cp-a-selinux +++ b/tests/cp/cp-a-selinux @@ -33,7 +33,8 @@ cleanup_() { cd /; umount "$cwd/mnt"; } dd if=/dev/zero of=blob bs=8192 count=200 > /dev/null 2>&1 \ || framework_failure mkdir mnt || framework_failure -mkfs -t ext2 -F blob || framework_failure +mkfs -t ext2 -F blob || + skip_test_ "failed to create an ext2 file system" # This context is special: it works even when mcstransd isn't running. ctx=root:object_r:tmp_t:s0 diff --git a/tests/rm/fail-2eperm b/tests/rm/fail-2eperm index 132e22cec..6cc66ef80 100755 --- a/tests/rm/fail-2eperm +++ b/tests/rm/fail-2eperm @@ -39,8 +39,7 @@ fail=0 rm_version=`setuidgid $NON_ROOT_USERNAME env PATH="$PATH" rm --version|sed -n '1s/.* //p'` case $rm_version in $PACKAGE_VERSION) ;; - *) echo "$0: cannot access just-built rm as user $NON_ROOT_USERNAME" 1>&2 - fail=1 ;; + *) skip_test_ "cannot access just-built rm as user $NON_ROOT_USERNAME";; esac setuidgid $NON_ROOT_USERNAME env PATH="$PATH" rm -rf a 2> out-t && fail=1 |