From 07cced77e8163a252433b8de696e2046a803e72b Mon Sep 17 00:00:00 2001 From: Lili Nie Date: Fri, 9 Aug 2024 12:17:24 -0400 Subject: [PATCH] Raise error when the workdir of runs doesn't exit --- tmt/utils/__init__.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tmt/utils/__init__.py b/tmt/utils/__init__.py index 222a535aae..37f96a9273 100644 --- a/tmt/utils/__init__.py +++ b/tmt/utils/__init__.py @@ -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: