Skip to content
This repository has been archived by the owner on Sep 17, 2024. It is now read-only.

Commit

Permalink
fix: let godog handle the creation of the junit test file (#629) (#634)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
mdelapenya authored Jan 20, 2021
1 parent 24f75e8 commit 05c6d2b
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions .ci/scripts/functional-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 05c6d2b

Please sign in to comment.