From 10f10c9a0a69243f41b95c21bd0c46ed96ea530c Mon Sep 17 00:00:00 2001 From: Elena Gryaznova Date: Tue, 19 Oct 2021 20:36:06 +0300 Subject: [PATCH 1/1] LU-15061 tests: fix sanity-dom exit status If any of sanity tests fails during "ONLY=sanity sh sanity-dom.sh" execution -- the next "ONLY=sanityn sh sanity-dom.sh" is always detected as failed even if all sanityn tests pass. This is because of ${TMP}/sanity.log exists and is checked for "FAIL" also, while ${TMP}/sanityn.log is to be proceeded only. Fixes e2cb43c409b9 ("LU-13773 tests: subscript failure propagation") Test-Parameters: trivial testlist=sanity-dom HPE-bug-id: LUS-10480 Signed-off-by: Elena Gryaznova Change-Id: I764d1d6df08da13acfecd445e67ced1b455ddce8 Reviewed-on: https://review.whamcloud.com/45299 Tested-by: jenkins Tested-by: Maloo Reviewed-by: Jian Yu Reviewed-by: Alexander Boyko Reviewed-by: Oleg Drokin --- lustre/tests/sanity-dom.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lustre/tests/sanity-dom.sh b/lustre/tests/sanity-dom.sh index 8c5b16b..4fa9ce4 100644 --- a/lustre/tests/sanity-dom.sh +++ b/lustre/tests/sanity-dom.sh @@ -220,4 +220,6 @@ run_test sanityn "Run sanityn with Data-on-MDT files" complete $SECONDS check_and_cleanup_lustre -exit_status "${TMP}/sanity.log ${TMP}/sanityn.log" +declare -a logs=($ONLY) +logs=("${logs[@]/#/$TMP/}") +exit_status "$(echo ${logs[@]/%/.log})" -- 1.8.3.1