summaryrefslogtreecommitdiffstats
path: root/test
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
parent4906238191b90be7aec2269ba8cd6aeb161cd312 (diff)
parentd8eafb16c85bc3b5d85d7ba8ebb1438cc0ae168f (diff)
downloadu-boot-1057b1be75386e3513dca392d8258e01e5cccc01.tar.gz
u-boot-1057b1be75386e3513dca392d8258e01e5cccc01.tar.xz
u-boot-1057b1be75386e3513dca392d8258e01e5cccc01.zip
Merge tag 'v2021.04-rc5' into next
Prepare v2021.04-rc5
Diffstat (limited to 'test')
-rw-r--r--test/print_ut.c2
-rw-r--r--test/py/tests/test_env.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/test/print_ut.c b/test/print_ut.c
index 61ea432e46..5b0a46de9c 100644
--- a/test/print_ut.c
+++ b/test/print_ut.c
@@ -7,9 +7,7 @@
#include <common.h>
#include <command.h>
-#if CONFIG_IS_ENABLED(EFI_LOADER) && !defined(API_BUILD)
#include <efi_api.h>
-#endif
#include <display_options.h>
#include <log.h>
#include <version.h>
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)