[U-Boot] [PATCH 1/2] unit-test: fix 'env default' invocation

Stephen Warren swarren at wwwdotorg.org
Mon Feb 3 21:24:23 CET 2014


From: Stephen Warren <swarren at nvidia.com>

"env default -f" doesn't work any more; replace it with
"env default -f -a". This avoids the following when running the ut
command:

do_ut_cmd: Testing commands
env - environment handling commands

Usage:
env default [-f] -a - [forcibly] reset default environment
...

Signed-off-by: Stephen Warren <swarren at nvidia.com>
---
 test/command_ut.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/test/command_ut.c b/test/command_ut.c
index 0e83db0cca0e..98f7625dda12 100644
--- a/test/command_ut.c
+++ b/test/command_ut.c
@@ -15,7 +15,7 @@ static const char test_cmd[] = "setenv list 1\n setenv list ${list}2; "
 static int do_ut_cmd(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
 {
 	printf("%s: Testing commands\n", __func__);
-	run_command("env default -f", 0);
+	run_command("env default -f -a", 0);
 
 	/* run a single command */
 	run_command("setenv single 1", 0);
-- 
1.8.1.5



More information about the U-Boot mailing list