From: Simon Glass <sjg@chromium.org>
Date: Sun, 31 Jul 2016 23:35:07 +0000 (-0600)
Subject: test: vboot: Put each test variant in its own section
X-Git-Tag: v2025.01-rc5-pxa1908~8786
X-Git-Url: http://git.dujemihanovic.xyz/html/static/git-logo.png?a=commitdiff_plain;h=851271a71ada94d3ae52057c5cea465f4ba9f621;p=u-boot.git

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>
---

diff --git a/test/py/tests/test_vboot.py b/test/py/tests/test_vboot.py
index a5032a7a04..25c3a53c97 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):