Skip to content

Commit be03f16

Browse files
author
H. Peter Anvin (Intel)
committed
travis: let "make travis" show the errors if any
Grep for FAIL in the log and print any errors, otherwise a success message. Signed-off-by: H. Peter Anvin (Intel) <hpa@zytor.com>
1 parent 51dce26 commit be03f16

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Makefile.in

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ EMPTY = : >
6161
SIDE = @: Generated by side effect
6262

6363
PYTHON3 = @PYTHON3@
64+
GREP = grep
6465

6566
INSTALL = @INSTALL@
6667
INSTALL_PROGRAM = @INSTALL_PROGRAM@
@@ -578,7 +579,9 @@ $(travis_version): version
578579
printf 'NASM version %s compiled on ?\n' `cat version` > $@
579580

580581
travis: $(PROGS) $(travis_version)
581-
$(PYTHON3) travis/nasm-t.py run > travis.log
582+
-$(PYTHON3) travis/nasm-t.py run > travis.log
583+
@if $(GREP) FAIL travis.log; then exit 1; else \
584+
echo '=== All tests PASS ==='; fi
582585

583586
#
584587
# Rules to run autogen if necessary

0 commit comments

Comments
 (0)