]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commitdiff
skip _check_test_fs unless a test is actually run
authorTheodore Ts'o <tytso@mit.edu>
Sat, 20 Jun 2009 17:01:43 +0000 (19:01 +0200)
committerChristoph Hellwig <hch@brick.lst.de>
Sat, 20 Jun 2009 17:01:43 +0000 (19:01 +0200)
Running _check_test_fs can take a non-trivial amount of time, and if a
test has been skipped because it doesn't work on Linux, or it doesn't
work of for ext4, it's pointless to re-run _check_test_fs.  So move
the call to _check_test_fs so it is only run if a test is actually run.

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Felix Blyakher <felixb@sgi.com>
check

diff --git a/check b/check
index 545c010fce93a380b6a0ceae55d5b3ff7148aac4..1aae528c84c3dddf28ac189e3dfc354cab235d6f 100755 (executable)
--- a/check
+++ b/check
@@ -308,10 +308,10 @@ do
     then
        try="$try $seq"
        n_try=`expr $n_try + 1`
+        _check_test_fs
     fi
     
     seq="after_$seq"
-    _check_test_fs
 done
 
 interrupt=false