Whamcloud - gitweb
LU-832 test: Add error check when running run-llog.sh 12/28412/2
authorWei Liu <wei3.liu@intel.com>
Mon, 7 Aug 2017 19:03:15 +0000 (12:03 -0700)
committerOleg Drokin <oleg.drokin@intel.com>
Mon, 28 Aug 2017 06:26:42 +0000 (06:26 +0000)
Add error status check in sanity test_60a when calling
run-llog.sh

Test-Parameters: trivial

Change-Id: I1296907c8892b7dd54dac37045d8a7c4e03b1f52
Signed-off-by: Wei Liu <wei3.liu@intel.com>
Reviewed-on: https://review.whamcloud.com/28412
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: James Nunez <james.a.nunez@intel.com>
Reviewed-by: John L. Hammond <john.hammond@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/tests/run-llog.sh
lustre/tests/sanity.sh

index 7c34dc6..edc582f 100644 (file)
@@ -12,7 +12,7 @@ set -x
 MGS=$($LCTL dl | awk '/mgs/ { print $4 }')
 [ -z "$MGS" ] && echo "$0: SKIP: no MGS available, skipping llog test" && exit 0
 
-load_module obdclass/llog_test || exit 0
+load_module obdclass/llog_test || exit 1
 $LCTL modules > $TMP/ogdb-$(hostname)
 echo "NOW reload debugging syms.."
 
index bf0f4c7..7aa4bf6 100755 (executable)
@@ -5371,7 +5371,7 @@ test_60a() {
 
        log "$TEST60_HEAD - from kernel mode"
        do_facet mgs "$LCTL set_param debug=warning; $LCTL dk > /dev/null"
-       do_facet mgs sh run-llog.sh
+       do_facet mgs "sh run-llog.sh" || error "run-llog.sh failed"
        do_facet mgs $LCTL dk > $TMP/$tfile
 
        # LU-6388: test llog_reader