LAVA: Decouple LAVA monitors among reg tests
As the control on BL2, S/NS regression tests has been decoupled during
build stage, the one in LAVA monitor should also decoupled.
This patch groups monitors for regression tests based on the setting of
"TEST_REGRESSION". Also also update the code format to make it easy to
read.
Signed-off-by: Xinyu Zhang <xinyu.zhang@arm.com>
Change-Id: I508675c7acc54dc81078f255b4d40b6773150926
diff --git a/lava_helper/lava_create_jobs.py b/lava_helper/lava_create_jobs.py
index 242a5d6..419bfce 100755
--- a/lava_helper/lava_create_jobs.py
+++ b/lava_helper/lava_create_jobs.py
@@ -57,12 +57,12 @@
if platform != os.getenv('TFM_PLATFORM'):
continue
recovery_image_url = get_recovery_url(recovery_store_url, recovery)
- if os.getenv("TEST_REGRESSION") != "OFF":
- monitor_name = "reg_tests"
- elif os.getenv("TEST_PSA_API") != "OFF":
+ if os.getenv("TEST_PSA_API") != "OFF":
monitor_name = "arch_tests"
- else:
+ elif os.getenv("TEST_REGRESSION") == "OFF":
monitor_name = "no_reg_tests"
+ else:
+ monitor_name = "reg_tests"
params = {
"job_name": "{}_{}_{}".format(os.getenv('CONFIG_NAME'), os.getenv("BUILD_NUMBER"), config["device_type"]),
"build_name": os.getenv('CONFIG_NAME'),