From 00ed916e8a58c3591bf366acaaa6e33780550da5 Mon Sep 17 00:00:00 2001 From: John Hodge Date: Thu, 3 Nov 2016 11:05:16 +0800 Subject: Makefile - Print last line of failed test's output --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 55ea3aa6..5d41502c 100644 --- a/Makefile +++ b/Makefile @@ -193,7 +193,7 @@ TEST_ARGS_run-pass/cfgs-on-items := --cfg fooA --cfg fooB output/rust/%.o: $(RUST_TESTS_DIR)%.rs $(RUSTCSRC) $(BIN) output/libstd.hir output/libtest.hir @mkdir -p $(dir $@) @echo "--- TEST $(patsubst output/rust/%.o,%,$@)" - @$(BIN) $< -o $@ --stop-after $(RUST_TESTS_FINAL_STAGE) $(TEST_ARGS_$*) > $@.txt 2>&1 + @$(BIN) $< -o $@ --stop-after $(RUST_TESTS_FINAL_STAGE) $(TEST_ARGS_$*) > $@.txt 2>&1 || tail -n 1 $@.txt @touch $@ output/rust/run-pass/allocator-default.o: output/libstd.hir output/liballoc_jemalloc.hir -- cgit v1.2.3