aboutsummaryrefslogtreecommitdiff
path: root/test/py
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2021-03-29 17:53:19 -0400
committerTom Rini <trini@konsulko.com>2021-03-29 18:00:21 -0400
commit1057b1be75386e3513dca392d8258e01e5cccc01 (patch)
treea1cbdc677c070064177e1d9defeb1fb4ab30ad6e /test/py
parent4906238191b90be7aec2269ba8cd6aeb161cd312 (diff)
parentd8eafb16c85bc3b5d85d7ba8ebb1438cc0ae168f (diff)
downloadu-boot-1057b1be75386e3513dca392d8258e01e5cccc01.zip
u-boot-1057b1be75386e3513dca392d8258e01e5cccc01.tar.gz
u-boot-1057b1be75386e3513dca392d8258e01e5cccc01.tar.bz2
Merge tag 'v2021.04-rc5' into nextWIP/29Mar2021-next
Prepare v2021.04-rc5
Diffstat (limited to 'test/py')
-rw-r--r--test/py/tests/test_env.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/py/tests/test_env.py b/test/py/tests/test_env.py
index 9402796..9bed2f4 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)