From 3cb61e0d1cc30434294962283f79a4f909e9d9dc Mon Sep 17 00:00:00 2001 From: Daan De Meyer Date: Fri, 3 May 2024 10:27:58 +0200 Subject: [PATCH] test: Pass through test matching environment variables to the mkosi VM --- test/integration-test-wrapper.py | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/test/integration-test-wrapper.py b/test/integration-test-wrapper.py index f3b1172a5d..e3dcf75239 100755 --- a/test/integration-test-wrapper.py +++ b/test/integration-test-wrapper.py @@ -64,6 +64,22 @@ def main(): """ ) + if os.getenv("TEST_MATCH_SUBTEST"): + dropin += textwrap.dedent( + f""" + [Service] + Environment=TEST_MATCH_SUBTEST={os.environ["TEST_MATCH_SUBTEST"]} + """ + ) + + if os.getenv("TEST_MATCH_TESTCASE"): + dropin += textwrap.dedent( + f""" + [Service] + Environment=TEST_MATCH_TESTCASE={os.environ["TEST_MATCH_TESTCASE"]} + """ + ) + if not sys.stderr.isatty(): dropin += textwrap.dedent( """