Skip to content

Commit

Permalink
test: Fix bootm_test_subst_var() running independently
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
sjg20 authored and trini committed Sep 12, 2022
1 parent 2aa1188 commit 44384c7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/bootm.c
Original file line number Diff line number Diff line change
Expand Up @@ -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"));

Expand Down

0 comments on commit 44384c7

Please sign in to comment.