Whamcloud - gitweb
b=24426 run_one(): run error() once
authorVladimir Saveliev <vladimir.saveliev@oracle.com>
Thu, 17 Feb 2011 19:16:26 +0000 (22:16 +0300)
committerTerry Rutledge <terry.rutledge@oracle.com>
Fri, 18 Feb 2011 17:18:09 +0000 (09:18 -0800)
there is no reason to run error() (and lctl dk thereby) more than once
second lctl dk overwrites the most important logs obtained on first lctl dk

i=grev

lustre/tests/test-framework.sh

index b5c0bf5..8cfda77 100644 (file)
@@ -2824,9 +2824,9 @@ run_one() {
     #check_mds
     cd $SAVE_PWD
     reset_fail_loc
-    check_grant ${testnum} || error "check_grant $testnum failed with $?"
-    check_catastrophe || error "LBUG/LASSERT detected"
-    ps auxww | grep -v grep | grep -q multiop && error "multiop still running"
+    check_grant ${testnum} || $TEST_FAILED || error "check_grant $testnum failed"
+    check_catastrophe || $TEST_FAILED || error "LBUG/LASSERT detected"
+    ps auxww | grep -v grep | grep -q multiop && ($TEST_FAILED || error "multiop still running")
     pass "($((`date +%s` - $BEFORE))s)"
     TEST_FAILED=false
     unset TESTNAME