Fixed TP values; Fix max() on empty list

This commit is contained in:
Andrew Grant committed 2022-04-18 08:40:31 -04:00
1 parent 4a2f961ffc
commit 5fde447ff0
2 files changed
+2 -1

No files matched your search

+1
View File
@@ -359,6 +359,7 @@ def get_valid_workloads(machine, request):
options = [x for x in tests if test_maps_onto_thread_count(machine, x)]
# Finally refine for tests of the highest priority
if not options: return []
highest_prio = max(options, key=lambda x: x.priority).priority
return [test for test in options if test.priority == highest_prio]