xfstests: change directory to / before _cleanup_testdir in test 135
authorBoris Ranto <branto@redhat.com>
Tue, 8 Mar 2011 13:29:20 +0000 (13:29 +0000)
committerAlex Elder <aelder@sgi.com>
Wed, 9 Mar 2011 20:52:45 +0000 (14:52 -0600)
commit9c931b32fbb1f09f0b74cb4f954d13270b54ff1b
treec8707a6bab73ff0b582866fbdeb8e08377794720
parent195df5adfb2c042ef82d6efda05ddee2a65ffc13
xfstests: change directory to / before _cleanup_testdir in test 135

Nfs tries to umount $testdir in _cleanup_testdir function. Tests 126
and 135 call 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.

Test 126 also does double a umount thanks to the call to _cleanup
before exit and the trap command.  So remove the unnecessary call of
the _cleanup function before exit.

Signed-off-by: Boris Ranto <branto@redhat.com>
Signed-off-by: Alex Elder <aelder@sgi.com>
126
135