LAVA: Run test cases only on FVP in per-patch job
LAVA tests on physical boards and QEMU are disabled in per-patch job,
which could help to improve the performance of per-patch job.
Signed-off-by: Xinyu Zhang <xinyu.zhang@arm.com>
Change-Id: I96019b8122d19142fd42540ac42573d31eb29d64
diff --git a/lava_helper/lava_create_jobs.py b/lava_helper/lava_create_jobs.py
index 2e803c3..1cffdb8 100755
--- a/lava_helper/lava_create_jobs.py
+++ b/lava_helper/lava_create_jobs.py
@@ -4,7 +4,7 @@
__copyright__ = """
/*
- * Copyright (c) 2020, Arm Limited. All rights reserved.
+ * Copyright (c) 2020-2021, Arm Limited. All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*
@@ -195,7 +195,11 @@
def main(user_args):
user_args.template_dir = "jinja2_templates"
- config_keys = lava_gen_config_map.keys()
+ config_keys = list(lava_gen_config_map.keys())
+ if user_args.fvp_only:
+ for key in config_keys:
+ if "fvp" not in key:
+ config_keys.remove(key)
if user_args.config_key:
config_keys = [user_args.config_key]
for config_key in config_keys:
@@ -257,6 +261,12 @@
help="Set the jenkins job name",
)
cmdargs.add_argument(
+ "--fvp-only",
+ dest="fvp_only",
+ action="store_true",
+ help="Run test cases on FVP only",
+ )
+ cmdargs.add_argument(
"--proj-config", dest="proj_config", action="store", help="Proj config"
)
cmdargs.add_argument(