kopia lustrzana https://github.com/espressif/esp-idf
ci: raise ImportError when search case failed instead of print the error
rodzic
f4a1f56c08
commit
f7a0e0cb5c
|
@ -5,7 +5,6 @@
|
||||||
import copy
|
import copy
|
||||||
import fnmatch
|
import fnmatch
|
||||||
import os
|
import os
|
||||||
import sys
|
|
||||||
import types
|
import types
|
||||||
from typing import List
|
from typing import List
|
||||||
|
|
||||||
|
@ -137,7 +136,6 @@ class Search:
|
||||||
test_cases += cls._search_cases_from_file(test_case_file)
|
test_cases += cls._search_cases_from_file(test_case_file)
|
||||||
|
|
||||||
if cls.missing_import_warnings:
|
if cls.missing_import_warnings:
|
||||||
print('\n\n'.join(cls.missing_import_warnings))
|
raise ImportError('\n\n'.join(cls.missing_import_warnings))
|
||||||
sys.exit(1)
|
|
||||||
|
|
||||||
return test_cases
|
return test_cases
|
||||||
|
|
Ładowanie…
Reference in New Issue