]> git.ipfire.org Git - thirdparty/suricata-verify.git/commitdiff
run.py: allow tests to specify environment variables
authorJason Ish <jason.ish@oisf.net>
Thu, 4 Jul 2024 21:06:57 +0000 (15:06 -0600)
committerVictor Julien <victor@inliniac.net>
Tue, 9 Jul 2024 10:15:24 +0000 (12:15 +0200)
run.py

diff --git a/run.py b/run.py
index 478bcce5459b04cd90fe07f9b1095e6f68066eb1..770af271dd9bf4f2cbb599e137684897c58fcfa9 100755 (executable)
--- a/run.py
+++ b/run.py
@@ -697,6 +697,9 @@ class TestRunner:
         env["OUTPUT_DIR"] = self.output
         if not "ASAN_OPTIONS" in env:
             env["ASAN_OPTIONS"] = "detect_leaks=1"
+        if self.config.get("env"):
+            for key in self.config["env"]:
+                env[key] = str(self.config["env"][key])
         return env
 
     def run(self, outdir):