summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2016-07-31 17:35:07 -0600
committerTom Rini <trini@konsulko.com>2016-08-05 20:55:22 -0400
commit851271a71ada94d3ae52057c5cea465f4ba9f621 (patch)
treeb0da775ffbce32cc26625a5f04d29181d7d1cf4b /test
parentac9a23cffc517ac5b8648f97683c66f4e55175f6 (diff)
downloadu-boot-imx-851271a71ada94d3ae52057c5cea465f4ba9f621.zip
u-boot-imx-851271a71ada94d3ae52057c5cea465f4ba9f621.tar.gz
u-boot-imx-851271a71ada94d3ae52057c5cea465f4ba9f621.tar.bz2
test: vboot: Put each test variant in its own section
Use 'cons.log.section' feature to split up the test output. This makes it easier to read. Suggested-by: Stephen Warren <swarren@nvidia.com> Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'test')
-rw-r--r--test/py/tests/test_vboot.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/py/tests/test_vboot.py b/test/py/tests/test_vboot.py
index a5032a7..25c3a53 100644
--- a/test/py/tests/test_vboot.py
+++ b/test/py/tests/test_vboot.py
@@ -67,11 +67,11 @@ def test_vboot(u_boot_console):
"""
cons.cleanup_spawn()
cons.ensure_spawned()
- cons.log.action('%s: Test Verified Boot Run: %s' % (sha_algo, test_type))
- output = cons.run_command_list(
- ['sb load hostfs - 100 %stest.fit' % tmpdir,
- 'fdt addr 100',
- 'bootm 100'])
+ with cons.log.section('Verified boot %s %s' % (sha_algo, test_type)):
+ output = cons.run_command_list(
+ ['sb load hostfs - 100 %stest.fit' % tmpdir,
+ 'fdt addr 100',
+ 'bootm 100'])
assert(expect_string in output)
def make_fit(its):