mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-26 09:32:01 +00:00
Run test only from modified files
This commit is contained in:
parent
79a964bfff
commit
34643ee16c
@ -69,9 +69,9 @@ def get_changed_tests_to_run(pr_info, repo_path):
|
||||
return []
|
||||
|
||||
for fpath in changed_files:
|
||||
if "tests/integration/test_" in fpath:
|
||||
if re.search("tests/integration/test_.*/test.*\.py", fpath) is not None:
|
||||
logging.info("File %s changed and seems like integration test", fpath)
|
||||
result.add(fpath.split("/")[2])
|
||||
result.add("/".join(fpath.split("/")[2:]))
|
||||
return filter_existing_tests(result, repo_path)
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user