mirror of
https://github.com/openmv/openmv.git
synced 2025-11-04 14:49:50 +08:00
Fix unit-test failing on disabled functions.
This commit is contained in:
parent
4e4a2ba1ca
commit
873833d777
@ -28,8 +28,11 @@ for test in sorted(os.listdir(SCRIPT_DIR)):
|
||||
if unittest(DATA_DIR, TEMP_DIR) == False:
|
||||
raise Exception()
|
||||
except Exception as e:
|
||||
if "unavailable" in str(e):
|
||||
test_result = "DISABLED"
|
||||
else:
|
||||
test_failed = True
|
||||
test_result = "DISABLED" if "unavailable" in str(e) else "FAILED"
|
||||
test_result = "FAILED"
|
||||
print_result(test, test_result)
|
||||
|
||||
if test_failed:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user