]> www.infradead.org Git - users/hch/xfstests-dev.git/commitdiff
filter out cleanup rm for IRIX
authorTim Shimmin <tes@sgi.com>
Thu, 2 Jun 2005 06:03:36 +0000 (06:03 +0000)
committerTim Shimmin <tes@sgi.com>
Thu, 2 Jun 2005 06:03:36 +0000 (06:03 +0000)
Merge of master-melb:xfs-cmds:22776a by kenmcd.

  filter out cleanup rm for IRIX

013

diff --git a/013 b/013
index 2d0c71c7a4bb4a3ed405aa5778d09a08c8ffb83a..61b02dc82b0c525c61b1c0d8eb05e2d20ee1a351 100755 (executable)
--- a/013
+++ b/013
@@ -51,8 +51,12 @@ _cleanup()
     cd /
     # we might get here with a RO FS
     mount -o remount,rw $TEST_DEV >/dev/null 2>&1
-    # now kill!
-    rm -rf $testdir/fsstress.$$.*
+    # now remove fsstress directory.
+    # N.B. rm(1) on IRIX can find problems when building up a long pathname
+    # such that what it has is greater the 1024 chars and will 
+    # stop and complain - so get rid of complaint
+    # Ref. pv#935754
+    rm -rf $testdir/fsstress.$$.* 2>&1 | grep -v 'Path too long'
     _cleanup_testdir
 }