diff options
author | Tom Rini <trini@konsulko.com> | 2021-03-18 12:53:35 -0400 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2021-03-18 12:53:35 -0400 |
commit | d65bd5707324b11b4cf95c47b482252d3ea803a4 (patch) | |
tree | f0711e70e00a1eaacdcc135ace17a61ab469cbd1 /test/py/tests/test_env.py | |
parent | eed127dbd4082ba21fd420449e68d1ad177cdc4b (diff) | |
parent | 9262fe15599a388e365cca3091e4852be8f23f11 (diff) |
Merge branch '2021-03-17-assorted-fixes'
- Make tests search /sbin for tools, don't use ENODATA in host tools to
be more portable, avb fix when partition isn't found and a bugfix for
mediatek mmc.
Diffstat (limited to 'test/py/tests/test_env.py')
-rw-r--r-- | test/py/tests/test_env.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/py/tests/test_env.py b/test/py/tests/test_env.py index 940279651d..9bed2f48d7 100644 --- a/test/py/tests/test_env.py +++ b/test/py/tests/test_env.py @@ -414,6 +414,8 @@ def mk_env_ext4(state_test_env): if os.path.exists(persistent): c.log.action('Disk image file ' + persistent + ' already exists') else: + # Some distributions do not add /sbin to the default PATH, where mkfs.ext4 lives + os.environ["PATH"] += os.pathsep + '/sbin' try: u_boot_utils.run_and_log(c, 'dd if=/dev/zero of=%s bs=1M count=16' % persistent) u_boot_utils.run_and_log(c, 'mkfs.ext4 %s' % persistent) |