diff options
Diffstat (limited to 'testing/tools/common.py')
-rwxr-xr-x | testing/tools/common.py | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/testing/tools/common.py b/testing/tools/common.py index 6e9de7c82c..1e1d257f48 100755 --- a/testing/tools/common.py +++ b/testing/tools/common.py @@ -18,12 +18,9 @@ def os_name(): raise Exception('Confused, can not determine OS, aborting.') -def RunCommand(cmd, redirect_output=False): +def RunCommand(cmd): try: - if redirect_output: - sys.stdout.write(subprocess.check_output(cmd, stderr=subprocess.STDOUT)) - else: - subprocess.check_call(cmd) + subprocess.check_call(cmd) return None except subprocess.CalledProcessError as e: return e |