From d12d4050aeaff674457f111c67a21d37e8911b40 Mon Sep 17 00:00:00 2001 From: Ralf Jung Date: Wed, 4 Aug 2021 11:25:33 +0200 Subject: [PATCH] improve test-cargo-miri output --- test-cargo-miri/run-test.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/test-cargo-miri/run-test.py b/test-cargo-miri/run-test.py index 51433d98a2ed..81a1b1b3f8a7 100755 --- a/test-cargo-miri/run-test.py +++ b/test-cargo-miri/run-test.py @@ -46,12 +46,13 @@ def test(name, cmd, stdout_ref, stderr_ref, stdin=b'', env={}): # All good! return # Show output - print("--- BEGIN stdout ---") + print("Test stdout or stderr did not match reference!") + print("--- BEGIN test stdout ---") print(stdout, end="") - print("--- END stdout ---") - print("--- BEGIN stderr ---") + print("--- END test stdout ---") + print("--- BEGIN test stderr ---") print(stderr, end="") - print("--- END stderr ---") + print("--- END test stderr ---") fail("exit code was {}".format(p.returncode)) def test_no_rebuild(name, cmd, env={}):