Whamcloud - gitweb
Branch b1_8
authordzogin <dzogin>
Thu, 10 Dec 2009 13:41:52 +0000 (13:41 +0000)
committerdzogin <dzogin>
Thu, 10 Dec 2009 13:41:52 +0000 (13:41 +0000)
 b=21409
 i=grev
 ----------------------------------------------------------------------
 Modified Files:
  Tag: b1_8
  lustre/tests/test-framework.sh

The small fix for test-framework to make code in 1.8 and HEAD consistent
----------------------------------------------------------------------

lustre/tests/test-framework.sh

index 8d802a3..24e1632 100644 (file)
@@ -2085,8 +2085,10 @@ error_noexit() {
 
 error() {
     error_noexit "$@"
-    reset_fail_loc
-    $FAIL_ON_ERROR && exit 1 || true
+    if $FAIL_ON_ERROR;  then
+        reset_fail_loc
+        exit 1
+    fi
 }
 
 error_exit() {