Skip to content

Commit

Permalink
Raise error when the workdir of runs doesn't exit
Browse files Browse the repository at this point in the history
  • Loading branch information
skycastlelily committed Dec 15, 2024
1 parent b012118 commit 07cced7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tmt/utils/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4518,6 +4518,9 @@ def generate_runs(
run_path = Path(id_name)
if '/' not in id_name:
run_path = path / run_path
if not run_path.exists():
raise tmt.utils.GeneralError(
f"Directory '{run_path}' does not exist, ")
if run_path.is_absolute() and run_path.exists():
yield run_path
else:
Expand Down

0 comments on commit 07cced7

Please sign in to comment.