330 | + # Print the final `combinedlogslen` lines of the combined logs
331 | + print('{}Combine the logs and print the last {} lines ...{}'.format(BOLD[1], combined_logs_len, BOLD[0]))
332 | + print('\n============')
333 | + print('{}Combined log for {}:{}'.format(BOLD[1], testdir, BOLD[0]))
334 | + print('============\n')
335 | + subprocess.run(["{} -c {} | tail -{}".format(tests_dir + './combine_logs.py', testdir, combined_logs_len)], shell=True, universal_newlines=True)
Also, subprocess.run was introduced in python 3.5. However, our supported version is 3.4
yeah - I noticed that too :(
Pushed a new version which I think should fix both problems:
- use
subprocess.Popen().communicate()
- don't use the braindead
shell=True argument and actually pass in arguments to the subprocess properly