[IE TESTS] Fix parallel runner to run any test (#18787)
* [IE TESTS] Fix parallel runner to run any test * Fix run_conformance on Macos
This commit is contained in:
parent
458125e158
commit
05247c9a86
@ -279,15 +279,18 @@ class TestParallelRunner:
|
||||
with open(test_list_file_name) as test_list_file:
|
||||
test_suite = ""
|
||||
for test_name in test_list_file.read().split('\n'):
|
||||
if "Running main() from" in test_name:
|
||||
continue
|
||||
if not ' ' in test_name:
|
||||
test_suite = test_name
|
||||
continue
|
||||
pos = test_name.find('#')
|
||||
if pos > 0:
|
||||
real_test_name = test_suite + test_name[2:pos-2]
|
||||
if pos > 0 or test_suite != "":
|
||||
real_test_name = test_suite + (test_name[2:pos-2] if pos > 0 else test_name[2:])
|
||||
if constants.DISABLED_PREFIX in real_test_name:
|
||||
self._disabled_tests.append(real_test_name)
|
||||
else:
|
||||
test_list.append(f'"{self.__replace_restricted_symbols(real_test_name)}":')
|
||||
else:
|
||||
test_suite = test_name
|
||||
test_list_file.close()
|
||||
os.remove(test_list_file_name)
|
||||
logger.info(f"Len test_list_runtime (without disabled tests): {len(test_list)}")
|
||||
|
@ -18,6 +18,7 @@ PG_WARN = "PG WARN"
|
||||
REF_COEF = "[ CONFORMANCE ] Influence coefficient: "
|
||||
|
||||
IS_WIN = "windows" in platform or "win32" in platform
|
||||
IS_MACOS = "darwin" in platform
|
||||
|
||||
OS_SCRIPT_EXT = ".bat" if IS_WIN else ""
|
||||
OS_BIN_FILE_EXT = ".exe" if IS_WIN else ""
|
||||
|
@ -71,7 +71,8 @@ def unzip_archieve(zip_path: os.path, dst_path: os.path):
|
||||
def find_latest_dir(in_dir: Path, pattern_list = list()):
|
||||
get_latest_dir = lambda path: sorted(Path(path).iterdir(), key=os.path.getmtime)
|
||||
entities = get_latest_dir(in_dir)
|
||||
entities.reverse()
|
||||
if not constants.IS_MACOS:
|
||||
entities.reverse()
|
||||
|
||||
for entity in entities:
|
||||
if entity.is_dir():
|
||||
|
Loading…
Reference in New Issue
Block a user