diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-11-08 14:03:28 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-11-09 12:24:24 +0000 |
commit | a3a122d2f58a6e3a220c099b2e948d4b4b280c4e (patch) | |
tree | 91b0539dc9a027a5a58bdd9371c5e0874ec583c7 /meta/lib/oeqa/selftest | |
parent | 729b1d3afd3d4b8eed4a4f4ddeb27780db47dcd5 (diff) | |
download | poky-a3a122d2f58a6e3a220c099b2e948d4b4b280c4e.tar.gz |
oeqa/runqemu: Only show stdout/stderr upon test failure
In general we don't need to see the output of runqemu however if it fails
we do. Use the buffer option that already exists in TestResult but allow
us to trigger it on a per test basis.
(From OE-Core rev: 86bef95bccbe9dad3dc3445ea365439861966179)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oeqa/selftest')
-rw-r--r-- | meta/lib/oeqa/selftest/cases/runqemu.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/meta/lib/oeqa/selftest/cases/runqemu.py b/meta/lib/oeqa/selftest/cases/runqemu.py index 1991be7d0c..1a8d12178d 100644 --- a/meta/lib/oeqa/selftest/cases/runqemu.py +++ b/meta/lib/oeqa/selftest/cases/runqemu.py | |||
@@ -14,6 +14,8 @@ class RunqemuTests(OESelftestTestCase): | |||
14 | 14 | ||
15 | image_is_ready = False | 15 | image_is_ready = False |
16 | deploy_dir_image = '' | 16 | deploy_dir_image = '' |
17 | # We only want to print runqemu stdout/stderr if there is a test case failure | ||
18 | buffer = True | ||
17 | 19 | ||
18 | def setUpLocal(self): | 20 | def setUpLocal(self): |
19 | super(RunqemuTests, self).setUpLocal() | 21 | super(RunqemuTests, self).setUpLocal() |