diff options
author | Simon Glass <sjg@chromium.org> | 2018-12-27 08:11:13 -0700 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2019-01-15 15:28:41 -0500 |
commit | 871bf7d9baba0ebb0485c01657399b2a339daa20 (patch) | |
tree | 20e86fa80fc72abb880a245d7576fa878908331f /test/py/tests/test_avb.py | |
parent | a50eb64915fd2e4775684b0dee98fb5d322ee4e4 (diff) |
test: Use single quote consistently
Some tests have ended up using double quotes where single quotes could be
used. Adjust this for consistency with the rest of U-Boot's Python code.
Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Diffstat (limited to 'test/py/tests/test_avb.py')
-rw-r--r-- | test/py/tests/test_avb.py | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/test/py/tests/test_avb.py b/test/py/tests/test_avb.py index 9683fd80d0..e70a010c9a 100644 --- a/test/py/tests/test_avb.py +++ b/test/py/tests/test_avb.py @@ -51,22 +51,22 @@ def test_avb_mmc_uuid(u_boot_console): part_lines = u_boot_console.run_command('mmc part').splitlines() part_list = {} - cur_partname = "" + cur_partname = '' for line in part_lines: - if "\"" in line: - start_pt = line.find("\"") - end_pt = line.find("\"", start_pt + 1) + if '"' in line: + start_pt = line.find('"') + end_pt = line.find('"', start_pt + 1) cur_partname = line[start_pt + 1: end_pt] - if "guid:" in line: - guid_to_check = line.split("guid:\t") + if 'guid:' in line: + guid_to_check = line.split('guid:\t') part_list[cur_partname] = guid_to_check[1] # lets check all guids with avb get_guid for part, guid in part_list.iteritems(): avb_guid_resp = u_boot_console.run_command('avb get_uuid %s' % part) - assert guid == avb_guid_resp.split("UUID: ")[1] + assert guid == avb_guid_resp.split('UUID: ')[1] @pytest.mark.buildconfigspec('cmd_avb') |