]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test: Pass through test matching environment variables to the mkosi VM
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Fri, 3 May 2024 08:27:58 +0000 (10:27 +0200)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Mon, 6 May 2024 08:56:54 +0000 (10:56 +0200)
test/integration-test-wrapper.py

index f3b1172a5d52792a844b33580ab91a55047c3fc0..e3dcf75239f76629cfc15d3611c1d74aa8462efc 100755 (executable)
@@ -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(
             """