From a47280e2b4cf491665a6fb5bad24ae7023be1631 Mon Sep 17 00:00:00 2001
From: Mick Jordan <mick.jordan@oracle.com>
Date: Thu, 21 Aug 2014 14:33:29 -0700
Subject: [PATCH] gate: check result from expected outfile compare

---
 mx.fastr/mx_fastr.py | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/mx.fastr/mx_fastr.py b/mx.fastr/mx_fastr.py
index 48d27a9a60..5e972160b7 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())
 
-- 
GitLab