diff options
author | Jim Meyering <meyering@redhat.com> | 2008-06-13 22:26:15 +0200 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2008-06-13 22:45:50 +0200 |
commit | 6c79825ce98ac84879c95befd372200ac17e9dad (patch) | |
tree | 161310b3cc818aade4186ce40dd77820651603d4 /tests/rm | |
parent | 3808eccbbf7086f1289fe391fe861ec1966645d6 (diff) | |
download | coreutils-6c79825ce98ac84879c95befd372200ac17e9dad.tar.xz |
skip (don't fail) root-only tests for common set-up failures
Address 2 of 4 failures reported by Jarod Wilson in
http://bugzilla.redhat.com/442352. More details here:
http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13803
* tests/cp/cp-a-selinux: Skip the test if "mkfs -t ext2" fails.
* tests/rm/fail-2eperm: Skip the test if "rm" is not accessible.
Diffstat (limited to 'tests/rm')
-rwxr-xr-x | tests/rm/fail-2eperm | 3 |
1 files changed, 1 insertions, 2 deletions
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 |