diff options
author | John Hodge <tpg@mutabah.net> | 2016-11-03 11:05:16 +0800 |
---|---|---|
committer | John Hodge <tpg@mutabah.net> | 2016-11-03 11:05:16 +0800 |
commit | 00ed916e8a58c3591bf366acaaa6e33780550da5 (patch) | |
tree | ece6ecc32d5027d3673b5fd676fc498e9e83c359 | |
parent | b175478b9ebf147dac0f0a382f0d8f259ef33671 (diff) | |
download | mrust-00ed916e8a58c3591bf366acaaa6e33780550da5.tar.gz |
Makefile - Print last line of failed test's output
-rw-r--r-- | Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |