From: Daan De Meyer Date: Fri, 3 May 2024 08:27:58 +0000 (+0200) Subject: test: Pass through test matching environment variables to the mkosi VM X-Git-Tag: v256-rc2~97^2~37 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3cb61e0d1cc30434294962283f79a4f909e9d9dc;p=thirdparty%2Fsystemd.git test: Pass through test matching environment variables to the mkosi VM --- diff --git a/test/integration-test-wrapper.py b/test/integration-test-wrapper.py index f3b1172a5d5..e3dcf75239f 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( """