Skip to content

Commit 26770db

Browse files
author
Kurt Biery
committed
Updated the new cleanup test in sample_ehn1_multihost_test.py to check for conditions that cause the integtest to be skipped.
1 parent 8100272 commit 26770db

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

integtest/sample_ehn1_multihost_test.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -458,4 +458,9 @@ def test_tpstream_files(run_dunerc):
458458

459459

460460
def test_cleanup(run_dunerc):
461+
if len(computers_that_are_unreachable) > 0:
462+
pytest.skip(f"One or more needed computers are unreachable ({computers_that_are_unreachable}).")
463+
if not pytest_tmpdir_looks_reasonable:
464+
pytest.skip("The PYTEST_DEBUG_TEMPROOT env var has not been set to point to a valid directory.")
465+
461466
utility_functions.remove_hdf5_files_if_requested(run_dunerc, this_test_requests_hdf5_file_removal=False)

0 commit comments

Comments
 (0)