From: Yu Watanabe Date: Wed, 5 Nov 2025 15:21:22 +0000 (+0900) Subject: test-network: read default values from environment variables X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=da665b708a5fb734c3114089f2f58783644b7f6f;p=thirdparty%2Fsystemd.git test-network: read default values from environment variables Nowadays, the test script is run as a service, and no argument about sanitizers are passed. Let's read them from the environment variables. --- diff --git a/test/test-network/systemd-networkd-tests.py b/test/test-network/systemd-networkd-tests.py index b650b34f987..6802646728c 100755 --- a/test/test-network/systemd-networkd-tests.py +++ b/test/test-network/systemd-networkd-tests.py @@ -81,10 +81,10 @@ valgrind_cmd = '' enable_debug = True env = {} wait_online_env = {} -asan_options = None -lsan_options = None -ubsan_options = None -with_coverage = False +asan_options = os.getenv('ASAN_OPTIONS') +lsan_options = os.getenv('LSAN_OPTIONS') +ubsan_options = os.getenv('UBSAN_OPTIONS') +with_coverage = os.getenv('COVERAGE_BUILD_DIR') != None show_journal = True # When true, show journal on stopping networkd. active_units = []