зеркало из https://github.com/microsoft/lisa.git
search_space: fix assert False failed.
Only None is not allowed, the False is a valid option.
This commit is contained in:
Родитель
e13b78fcef
Коммит
3d156630e4
|
@ -542,10 +542,10 @@ def generate_min_capability_setspace_by_priority(
|
|||
if item in requirement and item in capability:
|
||||
min_cap = item
|
||||
break
|
||||
assert min_cap, (
|
||||
"Cannot find min capability on data path, "
|
||||
f"requirement: {requirement}"
|
||||
f"capability: {capability}"
|
||||
assert min_cap is not None, (
|
||||
"Cannot find min capability, "
|
||||
f"requirement: '{requirement}', "
|
||||
f"capability: '{capability}'."
|
||||
)
|
||||
|
||||
return min_cap
|
||||
|
|
Загрузка…
Ссылка в новой задаче