diff --git a/qubes/tests/__init__.py b/qubes/tests/__init__.py index cb517b6c..30a79097 100644 --- a/qubes/tests/__init__.py +++ b/qubes/tests/__init__.py @@ -865,6 +865,8 @@ class SystemTestCase(QubesTestCase): 'qubes_templates_dir'): dirpath = os.path.join(qubes.config.qubes_base_dir, qubes.config.system_path[dirspec]) + if not os.path.exists(dirpath): + continue for name in os.listdir(dirpath): if name.startswith(prefix): vmnames.add(name)