diff --git a/mx.fastr/mx_fastr.py b/mx.fastr/mx_fastr.py index 48d27a9a60b37660c3c99a05ecca23e05cf1988b..5e972160b76dedb341d951f2eeb45d20ca85c69e 100644 --- a/mx.fastr/mx_fastr.py +++ b/mx.fastr/mx_fastr.py @@ -115,11 +115,13 @@ def _fastr_gate_body(args, tasks): # check that the expected test output file is up to date t = mx.GateTask('UnitTests: ExpectedTestOutput file check') - junit(['--tests', _simple_unit_tests(), '--check-expected-output']) + rc1 = junit(['--tests', _all_unit_tests(), '--check-expected-output']) + if rc1 != 0: + mx.abort('unit tests expected output check failed') tasks.append(t.stop()) t = mx.GateTask('UnitTests: simple') - rc = junit(['--tests', _simple_unit_tests()]) - if rc != 0: + rc2 = junit(['--tests', _simple_unit_tests()]) + if rc2 != 0: mx.abort('unit tests failed') tasks.append(t.stop())