test: env: check that non-mentioned variables to "env default" are preserved
authorRasmus Villemoes <ravi@prevas.dk>
Wed, 30 Oct 2024 21:34:03 +0000 (22:34 +0100)
committerTom Rini <trini@konsulko.com>
Fri, 15 Nov 2024 22:36:18 +0000 (16:36 -0600)
commit1e2325f76069f03fe0572af9599eab16674bdfc1
treec720978aaeab9511967ecc373b63f4c76c9ff270
parent4d28fcdf65950576f0e0f5447c89421126dc4943
test: env: check that non-mentioned variables to "env default" are preserved

Instead of testing the same expected behaviour for both
non_default_varX, test that when var1 is not in the default env but is
mentioned in the "env default" cmdline, it is removed, while var2 is
untouched.

Signed-off-by: Rasmus Villemoes <ravi@prevas.dk>
test/env/cmd_ut_env.c