mirror of
https://github.com/systemd/systemd.git
synced 2025-03-09 12:58:26 +03:00
test: Pass through test matching environment variables to the mkosi VM
This commit is contained in:
parent
38db5eff34
commit
3cb61e0d1c
@ -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():
|
if not sys.stderr.isatty():
|
||||||
dropin += textwrap.dedent(
|
dropin += textwrap.dedent(
|
||||||
"""
|
"""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user