Skip to content

Commit 59408b6

Browse files
author
hyd-dev
committed
Add some comments in test-cargo-miri/run-tests.py
1 parent c3ad182 commit 59408b6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test-cargo-miri/run-test.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,9 +173,11 @@ def test_cargo_miri_test():
173173
subprocess.run(cargo_miri("setup"), check=True)
174174
test_cargo_miri_run()
175175
test_cargo_miri_test()
176+
# Ensure we did not create anything outside the expected target dir.
176177
for target_dir in ["target", "custom-run", "custom-test", "config-cli"]:
177178
if os.listdir(target_dir) != ["miri"]:
178179
fail(f"`{target_dir}` contains unexpected files")
180+
# Ensure something exists inside that target dir.
179181
os.access(os.path.join(target_dir, "miri", "debug", "deps"), os.F_OK)
180182

181183
print("\nTEST SUCCESSFUL!")

0 commit comments

Comments
 (0)