Skip to content

Commit 963a514

Browse files
committed
unix Makefile: easy wait to print test failures as diffs
1 parent 798f6ec commit 963a514

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

ports/unix/Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -309,6 +309,10 @@ test_full: $(PROG) $(TOP)/tests/run-tests.py
309309
cd $(TOP)/tests && MICROPY_MICROPYTHON=../$(DIRNAME)/$(PROG) ./run-tests.py --via-mpy $(RUN_TESTS_MPY_CROSS_FLAGS) --emit native -d basics float micropython
310310
cat $(TOP)/tests/basics/0prelim.py | ./$(PROG) | grep -q 'abc'
311311

312+
.PHONY: print-failures clean-failures
313+
print-failures clean-failures:
314+
../../tests/run-tests.py --$@
315+
312316
test_gcov: test_full
313317
gcov -o $(BUILD)/py $(TOP)/py/*.c
314318
gcov -o $(BUILD)/extmod $(TOP)/extmod/*.c

0 commit comments

Comments
 (0)