Skip to content

Commit

Permalink
run-test.py: also print what we are testing for
Browse files Browse the repository at this point in the history
  • Loading branch information
RalfJung committed Mar 22, 2020
1 parent e1b654f commit b843de6
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test-cargo-miri/run-test.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@

import sys, subprocess, os

CGREEN = '\33[32m'
CBOLD = '\33[1m'
CEND = '\33[0m'

def fail(msg):
print("\nTEST FAIL: {}".format(msg))
sys.exit(1)
Expand Down Expand Up @@ -67,6 +71,9 @@ def test_cargo_miri_test():

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

target_str = " for target {}".format(os.environ['MIRI_TEST_TARGET']) if 'MIRI_TEST_TARGET' in os.environ else ""
print(CGREEN + CBOLD + "## Running `cargo miri` tests{}".format(target_str) + CEND)

if not 'MIRI_SYSROOT' in os.environ:
# Make sure we got a working sysroot.
# (If the sysroot gets built later when output is compared, that leads to test failures.)
Expand Down

0 comments on commit b843de6

Please sign in to comment.