diff --git a/filebeat/tests/system/test_modules.py b/filebeat/tests/system/test_modules.py index 874c1ae35e7..41585a7f65f 100644 --- a/filebeat/tests/system/test_modules.py +++ b/filebeat/tests/system/test_modules.py @@ -138,7 +138,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,