summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Hodge <tpg@mutabah.net>2016-11-03 11:05:16 +0800
committerJohn Hodge <tpg@mutabah.net>2016-11-03 11:05:16 +0800
commit00ed916e8a58c3591bf366acaaa6e33780550da5 (patch)
treeece6ecc32d5027d3673b5fd676fc498e9e83c359
parentb175478b9ebf147dac0f0a382f0d8f259ef33671 (diff)
downloadmrust-00ed916e8a58c3591bf366acaaa6e33780550da5.tar.gz
Makefile - Print last line of failed test's output
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
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