Commit Graph

9 Commits

Author SHA1 Message Date
Boris Ranto 9c931b32fb 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>
2011-03-09 14:52:45 -06:00
Dave Chinner 771e69de67 xfstests: Convert all tests to use /bin/bash
While most tests use /bin/sh, they are dependent on /bin/sh being a
bash shell.  Convert all the tests to execute via /bin/bash as it is
much, much simpler than trying to debug and remove all the bashisms
throughout the test code.

Signed-off-by: Dave Chinner <david@fromorbit.com>
Reviewed-by: Eric Sandeen <sandeen@sandeen.net>
2010-01-20 10:27:08 +11:00
Eric Sandeen 67fbcc9c08 allow more xfs_io tests to be generic
These tests just do generic reads & writes with xfs_io;
if we add a "-F" they will run on other filesystems.

Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
2009-06-09 10:32:29 -05:00
Christoph Hellwig f381f98206 xfstests: move GPL boilerplates to fix lsqa.pl
It turns out lsqa.pl nees the test number and description first in the
file, so move the GPL boilerplates below it.

Also remove acouple of cases where we have one full copyright line + gpl
boilerplate before the description and another copyright line after
the description.

Signed-off-by: Christoph Hellwig <hch@lst.de>
2009-05-28 17:04:15 +02:00
Felix Blyakher 65491dc047 Add GPL license plate to SGI's test files.
Signed-off-by: Felix Blyakher <felixb@sgi.com>
Reviewed-by: Eric Sandeen <sandeen@sandeen.net>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Felix Blyakher <felixb@sgi.com>
2009-05-26 16:51:14 -05:00
Brad Scarlett 892272e603 Various tests were incorrectly identifying themselves in header comments
Merge of master-melb:xfs-cmds:31874a by kenmcd.

  Change Header comment to correctly identify test name
2008-08-12 04:14:21 +00:00
Lachlan McIlroy 01973dcd86 Test that the on-disk file size is correct if file has been truncated.
Merge of master-melb:xfs-cmds:27522a by kenmcd.

  Test that the on-disk file size is correct if file has been truncated.
2006-11-23 02:56:07 +00:00
David Disseldorp 3e730a1b8a run test on scratch dir
remove failure case for when scratch is not mounted before test
Merge of master-melb:xfs-cmds:27201a by kenmcd.
2006-10-16 15:46:05 +00:00
Lachlan McIlroy bd993d0f21 Test to verify that the on-disk file size is updated correctly.
Merge of master-melb:xfs-cmds:27179a by kenmcd.
2006-10-13 03:53:31 +00:00