]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commitdiff
If test 078 fails and you try to run it again immediately, it
authorTim Shimmin <tes@sgi.com>
Tue, 15 Jul 2008 06:17:47 +0000 (06:17 +0000)
committerTim Shimmin <tes@sgi.com>
Tue, 15 Jul 2008 06:17:47 +0000 (06:17 +0000)
will execute a 'rm -f' on a directory which will fail. This should
be a rmdir....

Signed-off-by: Dave Chinner <dgc@sgi.com>
Merge of master-melb:xfs-cmds:31637a by kenmcd.

  If test 078 fails and you try to run it again immediately, it
  will execute a 'rm -f' on a directory which will fail. This should
  be a rmdir....  Signed-off-by: Dave Chinner <dgc@sgi.com>

078

diff --git a/078 b/078
index 623bcc9d655705b9f6d9c94ca62e4bb8a7fa6b65..ee8d7f73b82d2e9656a2795d972c3990d14db4ea 100755 (executable)
--- a/078
+++ b/078
@@ -50,8 +50,8 @@ _filter_io()
 # real QA test starts here
 
 echo "*** create loop mount point"
-rm -f $LOOP_MNT 2>/dev/null
-mkdir $LOOP_MNT || _fail "cannot create loopback mount point"
+rmdir $LOOP_MNT 2>/dev/null
+mkdir -p $LOOP_MNT || _fail "cannot create loopback mount point"
 
 _grow_loop()
 {