public inbox for linux-xfs@vger.kernel.org
 help / color / mirror / Atom feed
* xfstests: change directory to / before _cleanup_testdir in test 135
@ 2011-03-07 15:25 Boris Ranto
  2011-03-07 20:12 ` Alex Elder
  0 siblings, 1 reply; 4+ messages in thread
From: Boris Ranto @ 2011-03-07 15:25 UTC (permalink / raw)
  To: xfs

Nfs tries to umount $testdir in _cleanup_testdir function. The test 135 calls the function from directory $SCRATCH_MNT that is equal to $testdir (at least for nfs). The umount will therefore fail causing the test to fail due to the output mismatch.

This simple patch fixes the issue for me.

Signed-off-by: Boris Ranto <branto@redhat.com>

diff -urpN a/xfstests/135 b/xfstests/135
--- a/xfstests/135	2011-03-07 14:54:15.855172101 +0100
+++ b/xfstests/135	2011-03-07 14:54:29.895048375 +0100
@@ -34,6 +34,7 @@ trap "_cleanup; exit \$status" 0 1 2 3 1
 
 _cleanup()
 {
+    cd /
     _cleanup_testdir
 }


_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2011-03-08 20:11 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-07 15:25 xfstests: change directory to / before _cleanup_testdir in test 135 Boris Ranto
2011-03-07 20:12 ` Alex Elder
2011-03-08 13:29   ` Boris Ranto
2011-03-08 20:14     ` Alex Elder

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox