]> git.ipfire.org Git - people/ms/u-boot.git/commitdiff
test: vboot: Put each test variant in its own section
authorSimon Glass <sjg@chromium.org>
Sun, 31 Jul 2016 23:35:07 +0000 (17:35 -0600)
committerTom Rini <trini@konsulko.com>
Sat, 6 Aug 2016 00:55:22 +0000 (20:55 -0400)
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>
test/py/tests/test_vboot.py

index a5032a7a04db1a3a4542d7184b25b5a4cd28da74..25c3a53c97dc55f0394c7427956ec9ac230a1315 100644 (file)
@@ -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):