diff options
author | Simon Glass <sjg@chromium.org> | 2022-08-06 17:51:46 -0600 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2022-09-12 18:06:36 -0400 |
commit | 44384c70f9e93faa1a494bbf96a9b6c273a996ca (patch) | |
tree | 51f4203ff9192e478a133040e2ca41d3d9956a83 /test/bootm.c | |
parent | 2aa11884678654a1bffc20c8ec11fa0fae163bb2 (diff) | |
download | u-boot-44384c70f9e93faa1a494bbf96a9b6c273a996ca.zip u-boot-44384c70f9e93faa1a494bbf96a9b6c273a996ca.tar.gz u-boot-44384c70f9e93faa1a494bbf96a9b6c273a996ca.tar.bz2 |
test: Fix bootm_test_subst_var() running independently
This test relies on the silent_linux env variable being set. Add this
to the code so it can run without relying on other bootm tests having been
run first.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'test/bootm.c')
-rw-r--r-- | test/bootm.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/bootm.c b/test/bootm.c index 7d03e1e..4bb3ca0 100644 --- a/test/bootm.c +++ b/test/bootm.c @@ -208,7 +208,8 @@ BOOTM_TEST(bootm_test_silent_var, 0); /* Test substitution processing in the bootargs variable */ static int bootm_test_subst_var(struct unit_test_state *uts) { - env_set("bootargs", NULL); + ut_assertok(env_set("silent_linux", "yes")); + ut_assertok(env_set("bootargs", NULL)); ut_assertok(bootm_process_cmdline_env(BOOTM_CL_SILENT)); ut_asserteq_str("console=ttynull", env_get("bootargs")); |