summaryrefslogtreecommitdiffstats
path: root/tools/dtoc
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/dtoc
parent86af511d892df59f06bf49a71505a072ea2cd5f3 (diff)
downloadu-boot-4b4bc06ef4e37f79604ff8fa2142057e2cb05437.tar.gz
u-boot-4b4bc06ef4e37f79604ff8fa2142057e2cb05437.tar.xz
u-boot-4b4bc06ef4e37f79604ff8fa2142057e2cb05437.zip
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/dtoc')
-rw-r--r--tools/dtoc/test_dtoc.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/tools/dtoc/test_dtoc.py b/tools/dtoc/test_dtoc.py
index 72bcb37244..11bead1260 100644
--- a/tools/dtoc/test_dtoc.py
+++ b/tools/dtoc/test_dtoc.py
@@ -385,7 +385,8 @@ U_BOOT_DEVICE(phandle_source2) = {
def test_phandle_bad(self):
"""Test a node containing an invalid phandle fails"""
- dtb_file = get_dtb_file('dtoc_test_phandle_bad.dts')
+ dtb_file = get_dtb_file('dtoc_test_phandle_bad.dts',
+ capture_stderr=True)
output = tools.GetOutputFilename('output')
with self.assertRaises(ValueError) as e:
dtb_platdata.run_steps(['struct'], dtb_file, False, output)
@@ -394,7 +395,8 @@ U_BOOT_DEVICE(phandle_source2) = {
def test_phandle_bad2(self):
"""Test a phandle target missing its #*-cells property"""
- dtb_file = get_dtb_file('dtoc_test_phandle_bad2.dts')
+ dtb_file = get_dtb_file('dtoc_test_phandle_bad2.dts',
+ capture_stderr=True)
output = tools.GetOutputFilename('output')
with self.assertRaises(ValueError) as e:
dtb_platdata.run_steps(['struct'], dtb_file, False, output)