]> git.ipfire.org Git - thirdparty/suricata-verify.git/commitdiff
runner: only set ASAN_OPTIONS if not set
authorJason Ish <jason.ish@oisf.net>
Wed, 19 Jan 2022 18:25:27 +0000 (12:25 -0600)
committerJuliana Fajardini <jufajardini@gmail.com>
Thu, 20 Jan 2022 15:44:18 +0000 (15:44 +0000)
This allows the caller to override the ASAN_OPTIONS if needed.

run.py

diff --git a/run.py b/run.py
index c4cea2b83f263212d241fd074d2fa696aea63a51..6a5636d1c6a4126475d0f3e8d463dc64f739f876 100755 (executable)
--- 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):