[PATCH v4 2/4] create_new_execution_file_from_tags: add test argument
ohilyard at iol.unh.edu
ohilyard at iol.unh.edu
Mon Feb 7 15:19:41 CET 2022
From: Owen Hilyard <ohilyard at iol.unh.edu>
Adds an argument to allow passing in individual test cases to be added
to the resulting DTS execution file. This change was made to facilitate
periodic testing of testcases not currently in CI, such as rte_flow. A
test passed in using this argument will bypass the normal behavior of
only allowing test cases specified in the template execution file. This
behavior because the mapping of DPDK files to tags is not complete, and
to avoid not testing patches, the decision was made to run all tests if
the tests for a patch could not be determined.
Signed-off-by: Owen Hilyard <ohilyard at iol.unh.edu>
---
tools/create_new_execution_file_from_tags.py | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/tools/create_new_execution_file_from_tags.py b/tools/create_new_execution_file_from_tags.py
index 60ad663..58bcf1a 100755
--- a/tools/create_new_execution_file_from_tags.py
+++ b/tools/create_new_execution_file_from_tags.py
@@ -75,6 +75,8 @@ if __name__ == '__main__':
help='What type of testing to create an execution file for')
parser.add_argument('--tag', type=str, action='append',
help='The tags to create an execution file for.')
+ parser.add_argument('--test', type=str, action='append',
+ help='The tests to run along with the tests required by the provided tags')
args = parser.parse_args()
@@ -105,7 +107,11 @@ if __name__ == '__main__':
tests_to_run = list(set(test_allowlist).intersection(tests))
else:
tests_to_run = [entry for entry in test_allowlist if entry != '']
-
+
+ if args.test is not None:
+ for test in args.test:
+ tests_to_run.append(test)
+
tests_to_run.sort()
template_execution_file_parser[execution_plan]['test_suites'] = ", ".join(tests_to_run)
--
2.30.2
More information about the ci
mailing list