TEST-21-DFUZZER: skip test when no sanitizer is enabled

This commit is contained in:
Yu Watanabe
2025-05-09 17:45:26 +09:00
parent 5884fafcd7
commit 59dd650501
3 changed files with 13 additions and 8 deletions

View File

@@ -490,6 +490,14 @@ def main() -> None:
"""
)
if os.getenv('TEST_RUN_DFUZZER'):
dropin += textwrap.dedent(
f"""
[Service]
Environment=TEST_RUN_DFUZZER={os.environ['TEST_RUN_DFUZZER']}
"""
)
if os.getenv('TEST_JOURNAL_USE_TMP', '0') == '1':
if statfs(Path('/tmp')) != 'tmpfs' and statfs(Path('/dev/shm')) == 'tmpfs':
tmp = Path('/dev/shm')