tests: skip (don't fail) rm/one-file-system when mount --bind fails
authorJim Meyering <meyering@redhat.com>
Mon, 21 Apr 2008 12:47:56 +0000 (14:47 +0200)
committerJim Meyering <meyering@redhat.com>
Mon, 21 Apr 2008 12:48:19 +0000 (14:48 +0200)
* tests/rm/one-file-system: Reported by Allen Hewes.

THANKS
tests/rm/one-file-system

diff --git a/THANKS b/THANKS
index 703ef8d..df84761 100644 (file)
--- a/THANKS
+++ b/THANKS
@@ -21,6 +21,7 @@ Albert Hopkins                      ahopkins@dynacare.com
 Alberto Accomazzi                   alberto@cfa0.harvard.edu
 aldomel                             aldomel@ix.netcom.com
 Alen Muzinic                        zveki@fly.cc.fer.hr
+Allen Hewes                         allen@decisiv.net
 Axel Dörfler                        axeld@pinc-software.de
 Alexandre Duret-Lutz                duret_g@epita.fr
 Alexey Solovyov                     alekso@math.uu.se
index 1cc4bfb..abb12d4 100755 (executable)
@@ -31,7 +31,8 @@ cleanup_() { rm -rf "$other_partition_tmpdir"; }
 
 t=$other_partition_tmpdir
 mkdir -p a/b $t/y
-mount --bind $t a/b || framework_failure
+mount --bind $t a/b \
+  || skip_test_ "This test requires mount with a working --bind option."
 
 cat <<\EOF > exp || framework_failure
 rm: skipping `a/b', since it's on a different device