Commit 6f053c6c authored by Alexandre Fiche's avatar Alexandre Fiche
Browse files

Add env variable WASP_TEST

parent d95a61fb
Pipeline #10682 passed with stages
in 18 minutes and 59 seconds
......@@ -201,6 +201,7 @@ build-ubuntu-feat:
script:
- $(ls ./pkg-build/WASP-*.run | head -n 1) --target WASP
- export PYTHONPATH=$(pwd)/WASP/bin:$(pwd)/WASP/lib/python
- export WASP_TEST
- rclone copy s3_otb:wasp-data/test_S2B_T31TCH_1_20171008 Data/test_S2B_T31TCH_1_20171008
- rclone copy s3_otb:wasp-data/test_VNS_FR-LUS_4_20180207 Data/test_VNS_FR-LUS_4_20180207
- rclone copy s3_otb:wasp-data/test_S2B_T31TCH_1_20171008_l2_light_to_l3_light Data/test_S2B_T31TCH_1_20171008_l2_light_to_l3_light
......
......@@ -33,7 +33,7 @@ import argparse
class BaseComparison():
# WASP_TEST_ENV_VAR = "WASP_TEST"
WASP_TEST_ENV_VAR = "WASP_TEST"
@staticmethod
def createArgs(in_path, out_path, date = None, synthalf = None, dircormode = None,lightmode = None, bands = None):
......@@ -66,6 +66,12 @@ class BaseComparison():
args.writedts = None
return args
def setupEnvironment(self):
def setupEnvironment(self):
if not hasattr(self, 'wasp_test_path'):
try:
self.wasp_test_path = os.environ[self.WASP_TEST_ENV_VAR]
self.wasp_baseline_path = os.environ[self.WASP_TEST_ENV_VAR]
except:
raise ValueError("Cannot find env-variable " + self.WASP_TEST_ENV_VAR)
self.execPath = os.getcwd()
return
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment