Whamcloud - gitweb
LU-15061 tests: fix sanity-dom exit status 99/45299/2
authorElena Gryaznova <elena.gryaznova@hpe.com>
Tue, 19 Oct 2021 17:36:06 +0000 (20:36 +0300)
committerOleg Drokin <green@whamcloud.com>
Wed, 3 Nov 2021 02:38:43 +0000 (02:38 +0000)
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 <elena.gryaznova@hpe.com>
Change-Id: I764d1d6df08da13acfecd445e67ced1b455ddce8
Reviewed-on: https://review.whamcloud.com/45299
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Jian Yu <yujian@whamcloud.com>
Reviewed-by: Alexander Boyko <alexander.boyko@hpe.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>

index 8c5b16b..4fa9ce4 100644 (file)
@@ -220,4 +220,6 @@ run_test sanityn "Run sanityn with Data-on-MDT files"
 complete $SECONDS
 complete $SECONDS
-exit_status "${TMP}/sanity.log ${TMP}/sanityn.log"
+declare -a logs=($ONLY)
+exit_status "$(echo ${logs[@]/%/.log})"