python script updated

This commit is contained in:
Ivan Nikolaev-Axenov 2024-08-05 11:38:25 +03:00
parent 2826ced949
commit 6f99e219ca

View file

@ -72,10 +72,15 @@ def run_specific(index):
logging.info(f"Copying files from {DATA_ROOT_DIR}/{folders[index]}/clearing_testing_utils/ to {CLR_TEST_DIR}/clearing-all/clearing_testing_utils/") logging.info(f"Copying files from {DATA_ROOT_DIR}/{folders[index]}/clearing_testing_utils/ to {CLR_TEST_DIR}/clearing-all/clearing_testing_utils/")
shutil.copytree(f"{DATA_ROOT_DIR}/{folders[index]}/clearing_testing_utils/", f"{CLR_TEST_DIR}/clearing-all/clearing_testing_utils/", dirs_exist_ok=True) shutil.copytree(f"{DATA_ROOT_DIR}/{folders[index]}/clearing_testing_utils/", f"{CLR_TEST_DIR}/clearing-all/clearing_testing_utils/", dirs_exist_ok=True)
remove_files_with_extensions(".xml") remove_files_with_extensions(".xml")
change_date(folders[index]) change_date(folders[index])
run_docker(folders[index]) run_docker(folders[index])
logging.info(f"Removing folder {CLR_TEST_DIR}/mnt/dbfout")
shutil.rmtree(f"{CLR_TEST_DIR}/mnt/dbfout")
os.mkdir(f"{CLR_TEST_DIR}/mnt/dbfout")
def main(): def main():
folders = [i for i in sorted(os.listdir(DATA_ROOT_DIR)) if re.search("\\d{1,}.\\d{1,}.*", i)] folders = [i for i in sorted(os.listdir(DATA_ROOT_DIR)) if re.search("\\d{1,}.\\d{1,}.*", i)]