ci: raise ImportError when search case failed instead of print the error

pull/9408/head
Fu Hanxi 2022-06-14 16:44:40 +08:00
rodzic f4a1f56c08
commit f7a0e0cb5c
1 zmienionych plików z 1 dodań i 3 usunięć

Wyświetl plik

@ -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