From: Jason Ish Date: Wed, 19 Jan 2022 18:25:27 +0000 (-0600) Subject: runner: only set ASAN_OPTIONS if not set X-Git-Tag: suricata-6.0.5~39 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8a51183a8a9885596135d050ec10bdcd224ffde7;p=thirdparty%2Fsuricata-verify.git runner: only set ASAN_OPTIONS if not set This allows the caller to override the ASAN_OPTIONS if needed. --- diff --git a/run.py b/run.py index c4cea2b83..6a5636d1c 100755 --- a/run.py +++ b/run.py @@ -589,7 +589,8 @@ class TestRunner: env["TZ"] = "UTC" env["TEST_DIR"] = self.directory env["OUTPUT_DIR"] = self.output - env["ASAN_OPTIONS"] = "detect_leaks=1" + if not "ASAN_OPTIONS" in env: + env["ASAN_OPTIONS"] = "detect_leaks=1" return env def run(self, outdir):