summaryrefslogtreecommitdiff
path: root/tools/buildman
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2018-10-01 21:12:43 -0600
committerSimon Glass <sjg@chromium.org>2018-10-08 07:34:34 -0600
commit4b4bc06ef4e37f79604ff8fa2142057e2cb05437 (patch)
tree96bdc3a79061d8298c2a31a6e121de9223159946 /tools/buildman
parent86af511d892df59f06bf49a71505a072ea2cd5f3 (diff)
buildman: dtoc: Suppress unwanted output from test
There are a few test cases which print output. Suppress this so that tests can run silently in the normal case. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'tools/buildman')
-rw-r--r--tools/buildman/test.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/buildman/test.py b/tools/buildman/test.py
index 7259f7b650..e0c9d6da6a 100644
--- a/tools/buildman/test.py
+++ b/tools/buildman/test.py
@@ -20,6 +20,7 @@ import control
import command
import commit
import terminal
+import test_util
import toolchain
use_network = True
@@ -422,7 +423,8 @@ class TestBuild(unittest.TestCase):
def testToolchainDownload(self):
"""Test that we can download toolchains"""
if use_network:
- url = self.toolchains.LocateArchUrl('arm')
+ with test_util.capture_sys_output() as (stdout, stderr):
+ url = self.toolchains.LocateArchUrl('arm')
self.assertRegexpMatches(url, 'https://www.kernel.org/pub/tools/'
'crosstool/files/bin/x86_64/.*/'
'x86_64-gcc-.*-nolibc_arm-.*linux-gnueabi.tar.xz')