summaryrefslogtreecommitdiff
path: root/tests/cp
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2008-06-13 22:26:15 +0200
committerJim Meyering <meyering@redhat.com>2008-06-13 22:45:50 +0200
commit6c79825ce98ac84879c95befd372200ac17e9dad (patch)
tree161310b3cc818aade4186ce40dd77820651603d4 /tests/cp
parent3808eccbbf7086f1289fe391fe861ec1966645d6 (diff)
downloadcoreutils-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/cp')
-rwxr-xr-xtests/cp/cp-a-selinux3
1 files changed, 2 insertions, 1 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