From da665b708a5fb734c3114089f2f58783644b7f6f Mon Sep 17 00:00:00 2001 From: Yu Watanabe Date: Thu, 6 Nov 2025 00:21:22 +0900 Subject: [PATCH] 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. --- test/test-network/systemd-networkd-tests.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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 = [] -- 2.47.3