diff options
author | Tom Rini <trini@konsulko.com> | 2019-01-15 20:33:07 -0500 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2019-01-15 20:33:07 -0500 |
commit | e807f6b5f9a164dc1fc35e1c733fa343acf335c0 (patch) | |
tree | 73d8d68a2d4497ec6000f44d4ae8d4db80b40be2 /test/py/tests/test_fs | |
parent | d3689267f92c5956e09cc7d1baa4700141662bff (diff) | |
parent | 03dcf17dba3dbd6f1cfe9ecaa0665ea8c11e0ef2 (diff) |
Merge branch '2019-01-14-master-imports'
- MediaTek improvements (eth support)
- DM conversion for HI6220
- ISEE, Toby Churchill, other platform updates
- Various format code printf fixes
- Build race fixes
- Command repeat functionality enhanced, command autocomplete support
enhanced.
Diffstat (limited to 'test/py/tests/test_fs')
-rw-r--r-- | test/py/tests/test_fs/conftest.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/py/tests/test_fs/conftest.py b/test/py/tests/test_fs/conftest.py index 60b4a2d737..43eeb4be0b 100644 --- a/test/py/tests/test_fs/conftest.py +++ b/test/py/tests/test_fs/conftest.py @@ -54,7 +54,7 @@ def pytest_configure(config): supported_fs = config.getoption('fs_type') if supported_fs: - print("*** FS TYPE modified: %s" % supported_fs) + print('*** FS TYPE modified: %s' % supported_fs) supported_fs_basic = intersect(supported_fs, supported_fs_basic) supported_fs_ext = intersect(supported_fs, supported_fs_ext) supported_fs_mkdir = intersect(supported_fs, supported_fs_mkdir) @@ -174,7 +174,7 @@ def tool_is_in_path(tool): Return: True if available, False if not. """ - for path in os.environ["PATH"].split(os.pathsep): + for path in os.environ['PATH'].split(os.pathsep): fn = os.path.join(path, tool) if os.path.isfile(fn) and os.access(fn, os.X_OK): return True @@ -202,9 +202,9 @@ def mount_fs(fs_type, device, mount_point): check_call('guestmount -a %s -m /dev/sda %s' % (device, mount_point), shell=True) else: - mount_opt = "loop,rw" + mount_opt = 'loop,rw' if re.match('fat', fs_type): - mount_opt += ",umask=0000" + mount_opt += ',umask=0000' check_call('sudo mount -o %s %s %s' % (mount_opt, device, mount_point), shell=True) |