Fix workloads when none given

This commit is contained in:
Andrew Grant committed 2021-05-28 09:20:11 -04:00
1 parent a654bfe37d
commit e316814281
1 file changed
+2 -1
+2 -1
View File
@@ -355,7 +355,8 @@ def selectWorkload(tests, machine):
elif options and test.priority == highest:
options.append(test)
return ['None', random.choice(options)][len(options) != 0]
if len(options) == 0: return 'None'
return random.choice(options)
def workloadDictionary(test, result, machine):