Commit 04731378 authored by Jorn Bruggeman's avatar Jorn Bruggeman
Browse files

testing: support python < 3.7

parent 33811580
...@@ -51,7 +51,7 @@ print('Selected hosts: %s' % ', '.join(args.hosts)) ...@@ -51,7 +51,7 @@ print('Selected hosts: %s' % ', '.join(args.hosts))
logs = [] logs = []
def run(phase, args, verbose=False, **kwargs): def run(phase, args, verbose=False, **kwargs):
proc = subprocess.Popen(args, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, text=True, **kwargs) proc = subprocess.Popen(args, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, universal_newlines=True, **kwargs)
stdoutdata, _ = proc.communicate() stdoutdata, _ = proc.communicate()
if proc.returncode != 0: if proc.returncode != 0:
log_path = '%s.log' % phase log_path = '%s.log' % phase
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment