Skip to content

Commit b731436

Browse files
committed
make run-test runnable from other directories
1 parent 8cb0b23 commit b731436

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

test-cargo-miri/run-test.py

+3
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,10 @@ def test_cargo_miri_test():
6161
"test.stdout.ref2", "test.stderr.ref"
6262
)
6363

64+
os.chdir(os.path.dirname(os.path.realpath(__file__)))
65+
6466
test_cargo_miri_run()
6567
test_cargo_miri_test()
68+
6669
print("TEST SUCCESSFUL!")
6770
sys.exit(0)

travis.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ echo
2424
# Test
2525
function run_tests {
2626
cargo test --release --all-features
27-
(cd test-cargo-miri && ./run-test.py)
27+
test-cargo-miri/run-test.py
2828
}
2929

3030
echo "Test host architecture"

0 commit comments

Comments
 (0)