FAQ | This is a LIVE service | Changelog

Skip to content
Snippets Groups Projects
Commit 4cc5c21b authored by L. Bower's avatar L. Bower
Browse files

adding facility for running full fat tests on todays or yesterdays date

parent acbb07a0
No related branches found
No related tags found
No related merge requests found
......@@ -140,8 +140,6 @@ full_fat_depo:
- >
cd $CI_PROJECT_DIR/tests/integration/full/
touch $OUTPUT_DIR/hello.txt
python3 full_test_deposition.py
--config /storage/app/EWS_prod/regions/EastAfrica/resources/coordinator/configs/config_EastAfrica_fc_live.json
--outdir $OUTPUT_DIR
......
import argparse
import copy
import datetime
import glob
import os
import sys
......@@ -114,8 +115,19 @@ if __name__ == '__main__':
if _run_date_type == "today":
print("today")
today = datetime.date.today()
today_string = today.strftime("%Y%M%d")
TestFullDeposition.TEST_START_DATE = today_string
TestFullDeposition.TEST_JOB_DIR = "DEPOSITION_" + TestFullDeposition.TEST_START_DATE
print(TestFullDeposition.TEST_JOB_DIR)
elif _run_date_type == "yesterday":
print("yesterday")
today = datetime.date.today()
yesterday: datetime = today - datetime.timedelta(days=1)
yesterday_string = yesterday.strftime("%Y%M%d")
TestFullDeposition.TEST_START_DATE = yesterday_string
TestFullDeposition.TEST_JOB_DIR = "DEPOSITION_" + TestFullDeposition.TEST_START_DATE
print(TestFullDeposition.TEST_JOB_DIR)
elif _run_date_type == "custom":
print(_custom_run_date)
TestFullDeposition.TEST_START_DATE = _custom_run_date
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment