teuthology-suite: Add job count to priority error msg. 1601/head
authorSebastian Wagner <sebastian.wagner@suse.com>
Tue, 26 Jan 2021 12:02:35 +0000 (13:02 +0100)
committerSebastian Wagner <sebastian.wagner@suse.com>
Thu, 28 Jan 2021 14:36:54 +0000 (15:36 +0100)
Don't let users guess the job count.

Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
teuthology/suite/run.py

index 3b64185ee9b3c29150a50932990446daac6371c1..11f5166f151e84ac006eb1b49aa60dbe9a6f4759 100644 (file)
@@ -505,7 +505,9 @@ class Run(object):
 
     def check_priority(self, jobs_to_schedule):
         priority = self.args.priority
-        msg='''Use the following testing priority
+        msg=f'''Unable to schedule {jobs_to_schedule} jobs with priority {priority}.
+
+Use the following testing priority
 10 to 49: Tests which are urgent and blocking other important development.
 50 to 74: Testing a particular feature/fix with less than 25 jobs and can also be used for urgent release testing.
 75 to 99: Tech Leads usually schedule integration tests with this priority to verify pull requests against master.