Skip to content

Commit 7d0ba8d

Browse files
author
Shane Snyder
committed
skip tests when no logs repo
1 parent 05157b0 commit 7d0ba8d

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

darshan-util/pydarshan/darshan/tests/test_file_stats.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,8 @@ def _provide_logs_repo_filepaths_filtered():
6565
path for path in _provide_logs_repo_filepaths()
6666
if 'dlio_logs' in path
6767
]
68+
@pytest.mark.skipif(not pytest.has_log_repo,
69+
reason="missing darshan_logs")
6870
@pytest.mark.parametrize(
6971
("argv", "expected"),
7072
[

darshan-util/pydarshan/darshan/tests/test_job_stats.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,8 @@ def _provide_logs_repo_filepaths_filtered():
5858
path for path in _provide_logs_repo_filepaths()
5959
if 'dlio_logs' in path
6060
]
61+
@pytest.mark.skipif(not pytest.has_log_repo,
62+
reason="missing darshan_logs")
6163
@pytest.mark.parametrize(
6264
("argv", "expected"),
6365
[

0 commit comments

Comments
 (0)