From 87d6029649932a8b1112e72e27b00dce56fc2b76 Mon Sep 17 00:00:00 2001 From: Ivan Nikolaev-Axenov Date: Mon, 3 Jun 2024 15:55:18 +0300 Subject: [PATCH] .gitlab-ci.yml updated v55 --- .gitlab-ci.yml | 2 +- clr_test/run_test_docker_containers.py | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index ddfa58aad..1f0bca1d9 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -57,7 +57,7 @@ test: - cd libfaketime/src/ - make install - cd - - - python3 run_test_docker_containers.py + - LD_PRELOAD=/usr/local/lib/faketime/libfaketime.so.1 FAKETIME_DONT_FAKE_MONOTONIC=1 FAKETIME="@2020-12-24 20:30:00" python3 run_test_docker_containers.py - ls mnt - ls mnt/testFiles # - docker-compose down --volumes diff --git a/clr_test/run_test_docker_containers.py b/clr_test/run_test_docker_containers.py index da4ad497c..b53f14f59 100644 --- a/clr_test/run_test_docker_containers.py +++ b/clr_test/run_test_docker_containers.py @@ -1,3 +1,4 @@ +from datetime import date import os import re import shutil @@ -12,11 +13,12 @@ def run_docker(folder_name): print(f"Running docker-compose for {folder_name}") os.chdir(CLR_TEST_DIR) #subprocess.call("docker compose down --volumes", shell=True) - subprocess.call('LD_PRELOAD=/usr/local/lib/faketime/libfaketime.so.1 FAKETIME_DONT_FAKE_MONOTONIC=1 FAKETIME="@2020-12-24 20:30:00" docker compose up -V --build --abort-on-container-exit --exit-code-from clearing_system', shell=True) + subprocess.call('docker compose up -V --build --abort-on-container-exit --exit-code-from clearing_system', shell=True) os.chdir("..") def main(): + print(date.today()) folders = [i for i in sorted(os.listdir(DATA_ROOT_DIR)) if re.search("\\d{1,}.\\d{1,}.*", i)] shutil.rmtree(f"{CLR_TEST_DIR}/clearing-all/clearing_testing_utils/store/expected") shutil.rmtree(f"{CLR_TEST_DIR}/clearing-all/clearing_testing_utils/store/input")