Fix workloads when none given
This commit is contained in:
1 parent
a654bfe37d
commit
e316814281
1 file changed
+2
-1
+2
-1
@@ -355,7 +355,8 @@ def selectWorkload(tests, machine):
|
|||||||
elif options and test.priority == highest:
|
elif options and test.priority == highest:
|
||||||
options.append(test)
|
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):
|
def workloadDictionary(test, result, machine):
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user