From e71fd5643766bed894d77951fa66b58d3b448563 Mon Sep 17 00:00:00 2001 From: Wei Liu Date: Mon, 7 Aug 2017 12:03:15 -0700 Subject: [PATCH] LU-832 test: Add error check when running run-llog.sh Add error status check in sanity test_60a when calling run-llog.sh Test-Parameters: trivial Change-Id: I1296907c8892b7dd54dac37045d8a7c4e03b1f52 Signed-off-by: Wei Liu Reviewed-on: https://review.whamcloud.com/28412 Tested-by: Jenkins Tested-by: Maloo Reviewed-by: James Nunez Reviewed-by: John L. Hammond Reviewed-by: Oleg Drokin --- lustre/tests/run-llog.sh | 2 +- lustre/tests/sanity.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lustre/tests/run-llog.sh b/lustre/tests/run-llog.sh index 7c34dc6b..edc582f 100644 --- a/lustre/tests/run-llog.sh +++ b/lustre/tests/run-llog.sh @@ -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.." diff --git a/lustre/tests/sanity.sh b/lustre/tests/sanity.sh index bf0f4c7..7aa4bf6 100755 --- a/lustre/tests/sanity.sh +++ b/lustre/tests/sanity.sh @@ -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 -- 1.8.3.1