From: Jason Ish Date: Thu, 4 Jul 2024 21:06:57 +0000 (-0600) Subject: run.py: allow tests to specify environment variables X-Git-Tag: suricata-7.0.7~70 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6160983d8335d7357c48fd853ec35baaa23ab914;p=thirdparty%2Fsuricata-verify.git run.py: allow tests to specify environment variables --- diff --git a/run.py b/run.py index 478bcce54..770af271d 100755 --- 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):