.gitlab-ci.yml updated v55

This commit is contained in:
Ivan Nikolaev-Axenov 2024-06-03 15:55:18 +03:00
parent cdb8e280c3
commit 87d6029649
2 changed files with 4 additions and 2 deletions

View file

@ -57,7 +57,7 @@ test:
- cd libfaketime/src/ - cd libfaketime/src/
- make install - make install
- cd - - 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
- ls mnt/testFiles - ls mnt/testFiles
# - docker-compose down --volumes # - docker-compose down --volumes

View file

@ -1,3 +1,4 @@
from datetime import date
import os import os
import re import re
import shutil import shutil
@ -12,11 +13,12 @@ def run_docker(folder_name):
print(f"Running docker-compose for {folder_name}") print(f"Running docker-compose for {folder_name}")
os.chdir(CLR_TEST_DIR) os.chdir(CLR_TEST_DIR)
#subprocess.call("docker compose down --volumes", shell=True) #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("..") os.chdir("..")
def main(): def main():
print(date.today())
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)]
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/expected")
shutil.rmtree(f"{CLR_TEST_DIR}/clearing-all/clearing_testing_utils/store/input") shutil.rmtree(f"{CLR_TEST_DIR}/clearing-all/clearing_testing_utils/store/input")