Skip to content
This repository has been archived by the owner on Aug 30, 2022. It is now read-only.

Added ctest Error Handling #231

Merged
merged 1 commit into from
Apr 19, 2019
Merged

Added ctest Error Handling #231

merged 1 commit into from
Apr 19, 2019

Conversation

kj4ezj
Copy link
Contributor

@kj4ezj kj4ezj commented Apr 19, 2019

Change Description

Currently, if ctest executes some tests and then exits with a non-zero exit status, the xUnit-formatted XML file it produces will not be uploaded as a Buildkite artifact because those instructions occur after ctest fails the job, stopping execution.

Now the unit test script disables fail-on-error, runs ctest, saves the ctest exit status, attempts to attach the XML as an artifact, and then re-throws the ctest errors, if one occurred.

Tested working in eosio.contracts build 152.

Deployment Changes

  • Deployment Changes
    None.

API Changes

  • API Changes
    None.

Documentation Additions

  • Documentation Additions
    None.

@kj4ezj kj4ezj changed the base branch from master to develop April 19, 2019 15:07
@kj4ezj kj4ezj marked this pull request as ready for review April 19, 2019 15:07
@kj4ezj kj4ezj merged commit cfedaca into develop Apr 19, 2019
@kj4ezj kj4ezj deleted the zach-ctest-error-handling branch April 19, 2019 19:50
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants