]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
meson: Set PYTHONDONTWRITEBYTECODE=1 in test environment
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Tue, 1 Apr 2025 14:11:14 +0000 (16:11 +0200)
committerLuca Boccassi <luca.boccassi@gmail.com>
Tue, 8 Apr 2025 19:52:11 +0000 (20:52 +0100)
Let's not pollute the source tree with __pycache__ files.

(cherry picked from commit 51b74abb4809343751a86df6ccba351862a2f88c)
(cherry picked from commit 906ca21039e51853496b944627e813b577b541c7)

src/test/meson.build

index 9d3c7d675f2f0e7117dac92dbea79c9166153741..89249510be079a6a5443473cea3959c01b163b68 100644 (file)
@@ -15,6 +15,7 @@ test_env.set('SYSTEMD_LANGUAGE_FALLBACK_MAP', language_fallback_map)
 test_env.set('PATH', project_build_root + ':' + path)
 test_env.set('PROJECT_BUILD_ROOT', project_build_root)
 test_env.set('SYSTEMD_SLOW_TESTS', want_slow_tests ? '1' : '0')
+test_env.set('PYTHONDONTWRITEBYTECODE', '1')
 
 if efi_addon != ''
         test_env.set('EFI_ADDON', efi_addon)