From 0e774b0acedaf966c48e1e4f7e9b1f7a780e07b1 Mon Sep 17 00:00:00 2001 From: ManickaP Date: Tue, 23 May 2023 16:27:11 +0200 Subject: [PATCH] Kdepak asi soudruzi udelali chybu --- eng/testing/RunnerTemplate.sh | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/eng/testing/RunnerTemplate.sh b/eng/testing/RunnerTemplate.sh index 1ccf586242dd4..c0f2362601fe3 100644 --- a/eng/testing/RunnerTemplate.sh +++ b/eng/testing/RunnerTemplate.sh @@ -166,9 +166,6 @@ echo =========================================================================== pushd $EXECUTION_DIR [[RunCommands]] test_exitcode=$? -if [[ -s testResults.xml ]]; then - has_test_results=1; -fi; popd echo ----- end $(date) ----- exit code $test_exitcode ---------------------------------------------------------- @@ -233,7 +230,7 @@ popd >/dev/null # ======================== END Core File Inspection ========================== # The helix work item should not exit with non-zero if tests ran and produced results # The special console runner for runtime returns 1 when tests fail -if [[ "$test_exitcode" == "1" && $has_test_results ]]; then +if [[ "$test_exitcode" == "1" ]]; then if [ -n "$HELIX_WORKITEM_PAYLOAD" ]; then exit 0 fi