Mir

Merge lp:~alan-griffiths/mir/test-failures-fail-ptest into lp:mir

Proposed by Alan Griffiths
Status: Merged
Approved by: Daniel van Vugt
Approved revision: no longer in the source branch.
Merged at revision: 2927
Proposed branch: lp:~alan-griffiths/mir/test-failures-fail-ptest
Merge into: lp:mir
Diff against target: 16 lines (+3/-0)
1 file modified
tools/run_ctests.sh (+3/-0)
To merge this branch: bzr merge lp:~alan-griffiths/mir/test-failures-fail-ptest
Reviewer Review Type Date Requested Status
Daniel van Vugt Approve
PS Jenkins bot (community) continuous-integration Approve
Review via email: mp+270842@code.launchpad.net

Commit message

Have the ptest target fail if tests fail

Description of the change

Have the ptest target fail if tests fail

To post a comment you must log in.
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
Revision history for this message
Daniel van Vugt (vanvugt) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'tools/run_ctests.sh'
2--- tools/run_ctests.sh 2015-05-19 22:04:52 +0000
3+++ tools/run_ctests.sh 2015-09-11 15:57:51 +0000
4@@ -51,9 +51,12 @@
5
6 # Run tests
7 ctest -S "$TEST_DIR/steer.cmake" --output-on-failure -j8 -V $@
8+test_result=$(find $TEST_DIR -name LastTestsFailed_*.log | wc -l)
9
10 # Update cost file
11 if [ -n "$cost_file" ];
12 then
13 cp "$run_cost_file" "$cost_file"
14 fi
15+
16+exit $test_result

Subscribers

People subscribed via source and target branches