Removed shell option from subprocess.

This commit is contained in:
Alan Jeffrey 2016-08-19 13:45:55 -05:00
parent 1096351543
commit eb18665f5b

View file

@ -28,8 +28,7 @@ def execute_test(url, command, timeout):
print(' '.join(command))
print("Timeout:{}".format(timeout))
try:
return subprocess.check_output(command, stderr=subprocess.STDOUT,
shell=True, timeout=timeout)
return subprocess.check_output(command, stderr=subprocess.STDOUT, timeout=timeout)
except subprocess.CalledProcessError as e:
print("Unexpected Fail:")
print(e)