From: Elena Gryaznova Date: Tue, 19 Oct 2021 17:36:06 +0000 (+0300) Subject: LU-15061 tests: fix sanity-dom exit status X-Git-Tag: 2.14.56~112 X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=commitdiff_plain;h=10f10c9a0a69243f41b95c21bd0c46ed96ea530c;hp=b45169276ce1ab09dae7a733859f89a6c92808e5 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 --- 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})"