Skip to content

Commit b843de6

Browse files
committed
run-test.py: also print what we are testing for
1 parent e1b654f commit b843de6

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

test-cargo-miri/run-test.py

+7
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@
77

88
import sys, subprocess, os
99

10+
CGREEN = '\33[32m'
11+
CBOLD = '\33[1m'
12+
CEND = '\33[0m'
13+
1014
def fail(msg):
1115
print("\nTEST FAIL: {}".format(msg))
1216
sys.exit(1)
@@ -67,6 +71,9 @@ def test_cargo_miri_test():
6771

6872
os.chdir(os.path.dirname(os.path.realpath(__file__)))
6973

74+
target_str = " for target {}".format(os.environ['MIRI_TEST_TARGET']) if 'MIRI_TEST_TARGET' in os.environ else ""
75+
print(CGREEN + CBOLD + "## Running `cargo miri` tests{}".format(target_str) + CEND)
76+
7077
if not 'MIRI_SYSROOT' in os.environ:
7178
# Make sure we got a working sysroot.
7279
# (If the sysroot gets built later when output is compared, that leads to test failures.)

0 commit comments

Comments
 (0)