Skip to content

Commit

Permalink
move conversion to process only
Browse files Browse the repository at this point in the history
  • Loading branch information
ruflin committed May 9, 2019
1 parent 49066d8 commit bc5c194
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions filebeat/tests/system/test_modules.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit bc5c194

Please sign in to comment.