From bc5c1941c19233411e5a2cce78c49d3505334f81 Mon Sep 17 00:00:00 2001 From: beats-jenkins Date: Thu, 9 May 2019 12:19:01 +0200 Subject: [PATCH] move conversion to process only --- filebeat/tests/system/test_modules.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/filebeat/tests/system/test_modules.py b/filebeat/tests/system/test_modules.py index 6a22c8f55cf4..d7d1c0de6361 100644 --- a/filebeat/tests/system/test_modules.py +++ b/filebeat/tests/system/test_modules.py @@ -142,7 +142,12 @@ def run_on_file(self, module, fileset, test_file, cfgfile): output_path = os.path.join(self.working_dir) output = open(os.path.join(output_path, "output.log"), "ab") output.write(" ".join(cmd) + "\n") + + local_env = os.environ.copy() + local_env["TZ"] = 'Etc/UTC' + subprocess.Popen(cmd, + env=local_env, stdin=None, stdout=output, stderr=subprocess.STDOUT,