From f62e5b13053a5740bc4aff829393b2d205b74219 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20de=20la=20Pe=C3=B1a?= Date: Wed, 20 Jan 2021 22:34:15 +0100 Subject: [PATCH] fix: let godog handle the creation of the junit test file (#629) It was causing that, after a test failure, the script exited with code 1, and possibly not allowing next stages to fetch the generated files. --- .ci/scripts/functional-test.sh | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/.ci/scripts/functional-test.sh b/.ci/scripts/functional-test.sh index 8113d2ee39..2df3f7fe4b 100755 --- a/.ci/scripts/functional-test.sh +++ b/.ci/scripts/functional-test.sh @@ -28,12 +28,4 @@ mkdir -p outputs REPORT="$(pwd)/outputs/TEST-${SUITE}" -## Generate test report even if make failed. -set +e -exit_status=0 -if ! SUITE=${SUITE} TAGS="${TAGS}" FORMAT=junit:${REPORT}.xml STACK_VERSION=${STACK_VERSION} METRICBEAT_VERSION=${METRICBEAT_VERSION} make --no-print-directory -C e2e functional-test ; then - echo 'ERROR: functional-test failed' - exit_status=1 -fi - -exit $exit_status +SUITE=${SUITE} TAGS="${TAGS}" FORMAT=junit:${REPORT}.xml STACK_VERSION=${STACK_VERSION} METRICBEAT_VERSION=${METRICBEAT_VERSION} make --no-print-directory -C e2e functional-test