summaryrefslogtreecommitdiff
path: root/tests/xfs/202
diff options
context:
space:
mode:
authorDave Chinner <dchinner@redhat.com>2014-09-08 20:48:45 +1000
committerDave Chinner <david@fromorbit.com>2014-09-08 20:48:45 +1000
commitc941f156e93cfde79a11de422ccb78b4dbe513c6 (patch)
treef581b74d00c97f87f1672159b78eecb3fcadf35d /tests/xfs/202
parentf7d0a306291ade6f2b91c1073e11fe5a663d6266 (diff)
common: don't check scratch dev on all tests
Some tests deliberately corrupt scratch devices and so will fail the post-test check. Add a "_require_scratch_nocheck" helper function for such tests to avoid false test failure detection. Also, ensure that _notrun cleans up the trigger for the post-test checks. Otherwise the next test to run may try to validate the scratch/test devices even though they are not used by the test. Further, _check_xfs_filesystem() causes check to exit if it finds a corruption. This is extremely annoying as it terminates the entire test run rather than just reporting that the test fails. Hence add an "iam != check" test before exiting so that calls from tests will cause the test to fail, but calls from check won't cause the harness to exit. There are still some tests that fail the scratch check, these are not obvious test failures and so need further investigation to determine the cause of the failures. Signed-off-by: Dave Chinner <dchinner@redhat.com> Signed-off-by: Dave Chinner <david@fromorbit.com>
Diffstat (limited to 'tests/xfs/202')
-rwxr-xr-xtests/xfs/2024
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/xfs/202 b/tests/xfs/202
index 15c6603f..b9827a7f 100755
--- a/tests/xfs/202
+++ b/tests/xfs/202
@@ -38,7 +38,9 @@ status=1 # failure is the default!
_supported_fs xfs
_supported_os Linux
-_require_scratch
+# single AG will cause default xfs_repair to fail. This test is actually
+# testing the special corner case option needed to repair a single AG fs.
+_require_scratch_nocheck
#
# The AG size is limited to 1TB (or even less with historic xfsprogs),