]> git.apps.os.sepia.ceph.com Git - teuthology.git/commitdiff
suite.Run.schedule_jobs: Unmask error in dry-run
authorZack Cerza <zack@redhat.com>
Fri, 14 Jun 2024 18:51:20 +0000 (12:51 -0600)
committerZack Cerza <zack@redhat.com>
Fri, 14 Jun 2024 19:07:38 +0000 (13:07 -0600)
For whatever reason we were suppressing an error related to unavailable
packages.

Signed-off-by: Zack Cerza <zack@redhat.com>
teuthology/suite/run.py

index a37887811b6b8e311f424d38fd8709ba898deeb3..8fa45b5b4596aea833e204aa8b01ea4e509f7b23 100644 (file)
@@ -512,13 +512,10 @@ class Run(object):
             log_prefix = ''
             if job in jobs_missing_packages:
                 log_prefix = "Missing Packages: "
-                if (
-                    not self.args.dry_run and
-                    not config.suite_allow_missing_packages
-                ):
+                if not config.suite_allow_missing_packages:
                     util.schedule_fail(
-                        "At least one job needs packages that don't exist for "
-                        "hash {sha1}.".format(sha1=self.base_config.sha1),
+                        "At least one job needs packages that don't exist "
+                        f"for hash {self.base_config.sha1}.",
                         name,
                         dry_run=self.args.dry_run,
                     )