]> git.ipfire.org Git - people/ms/u-boot.git/commitdiff
test: Fix typos in comments
authorSimon Glass <sjg@chromium.org>
Sun, 31 Jul 2016 23:35:04 +0000 (17:35 -0600)
committerTom Rini <trini@konsulko.com>
Sat, 6 Aug 2016 00:55:20 +0000 (20:55 -0400)
Fix some typos in various files introduced with the vboot test conversion.

Reported-by: Teddy Reed <teddy.reed@gmail.com>
Signed-off-by: Simon Glass <sjg@chromium.org>
test/py/tests/test_vboot.py
test/py/u_boot_console_base.py
test/py/u_boot_utils.py

index 46552fc803e10311623425ef0e16a308ba08a538..8d1071000c0513afe0f8091b1961bd75d5c85a1e 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright (c) 2013, Google Inc.
+# Copyright (c) 2016, Google Inc.
 #
 # SPDX-License-Identifier:     GPL-2.0+
 #
@@ -16,7 +16,7 @@ For image verification:
 For configuration verification:
 - Corrupt signature and check for failure
 - Create FIT (with unsigned configuration) with mkimage
-- Check that image veriication works
+- Check that image verification works
 - Sign the FIT and mark the key as 'required' for verification
 - Check that image verification works
 - Corrupt the signature
@@ -41,7 +41,7 @@ def test_vboot(u_boot_console):
     key-generation process is quite slow and we want to avoid doing it twice.
     """
     def dtc(dts):
-        """Run the device-tree compiler to compile a .dts file
+        """Run the device tree compiler to compile a .dts file
 
         The output file will be the same as the input file but with a .dtb
         extension.
@@ -73,12 +73,12 @@ def test_vboot(u_boot_console):
         assert(expect_string in output)
 
     def make_fit(its):
-        """Make a new FIT from the .its source file
+        """Make a new FIT from the .its source file.
 
         This runs 'mkimage -f' to create a new FIT.
 
         Args:
-            its: Filename containing .its source
+            its: Filename containing .its source.
         """
         util.run_and_log(cons, [mkimage, '-D', dtc_args, '-f',
                                 '%s%s' % (datadir, its), fit])
@@ -94,7 +94,7 @@ def test_vboot(u_boot_console):
                                 '-r', fit])
 
     def test_with_algo(sha):
-        """Test verified boot with the given hash algorithm
+        """Test verified boot with the given hash algorithm.
 
         This is the main part of the test code. The same procedure is followed
         for both hashing algorithms.
index 4606ad48bf5d49d7c90c2ade5418347f08b577bf..356cf801b4b2858818f4190c997c2bdd0f77a409 100644 (file)
@@ -223,9 +223,9 @@ class ConsoleBase(object):
         for each command in a list.
 
         Args:
-            cmd: List of commands (each a string)
+            cmd: List of commands (each a string).
         Returns:
-            Combined output of all commands, as a string
+            Combined output of all commands, as a string.
         """
         output = ''
         for cmd in cmds:
index d71348f70e9aceb5e29a86b504c357ce1d2b78ca..e74e34231fb53ade3252b5aaaa71fe09baa9d878 100644 (file)
@@ -186,7 +186,7 @@ def cmd(u_boot_console, cmd_str):
     return run_and_log(u_boot_console, cmd_str.split())
 
 def run_and_log_expect_exception(u_boot_console, cmd, retcode, msg):
-    """Run a command which is expected to fail.
+    """Run a command that is expected to fail.
 
     This runs a command and checks that it fails with the expected return code
     and exception method. If not, an exception is raised.
@@ -195,7 +195,7 @@ def run_and_log_expect_exception(u_boot_console, cmd, retcode, msg):
         u_boot_console: A console connection to U-Boot.
         cmd: The command to run, as an array of argv[].
         retcode: Expected non-zero return code from the command.
-        msg: String which should be contained within the command's output.
+        msg: String that should be contained within the command's output.
     """
     try:
         runner = u_boot_console.log.get_runner(cmd[0], sys.stdout)