From 7f64e58c325dda75008b6e294b102121ef2e4a15 Mon Sep 17 00:00:00 2001 From: Johannes Meyer Date: Fri, 6 Dec 2013 13:02:26 +0100 Subject: [PATCH] Make setup output quiet refs #5223 --- test/jenkins/run_tests.py | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/test/jenkins/run_tests.py b/test/jenkins/run_tests.py index 2dea88f9c..f0a180cd9 100755 --- a/test/jenkins/run_tests.py +++ b/test/jenkins/run_tests.py @@ -12,6 +12,12 @@ from optparse import OptionParser from xml.dom.minidom import getDOMImplementation +try: + from subprocess import DEVNULL +except ImportError: + DEVNULL = open(os.devnull, 'w') + + class TestSuite(object): def __init__(self, configpath): self._tests = [] @@ -78,15 +84,15 @@ class TestSuite(object): def _remove_file(self, path): command = self._config['commands']['clean'].format(path) - subprocess.call(command, shell=True) + subprocess.call(command, stdout=DEVNULL, stderr=DEVNULL, shell=True) def _exec_command(self, command): command = self._config['commands']['exec'].format(command) - subprocess.call(command, shell=True) + subprocess.call(command, stdout=DEVNULL, stderr=DEVNULL, shell=True) def _copy_file(self, source, destination): command = self._config['commands']['copy'].format(source, destination) - subprocess.call(command, shell=True) + subprocess.call(command, stdout=DEVNULL, stderr=DEVNULL, shell=True) def _copy_test(self, path): self._copy_file(path, os.path.join(self._config['settings']['test_root'], -- 2.50.0