rockchip: test: set argc to 1 for rktest all cmd

The 'rktest all v2/3' do not really pass arg to sub cmd, always set argc
for 'rktest all *' cmd to 1 for sub commands.

Change-Id: I2d69ad25aaca074f52bfd2e69be4c33bc41186df
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
This commit is contained in:
Kever Yang 2019-09-23 17:00:14 +08:00
parent 7f1fb2f87a
commit d0ff3d4548
1 changed files with 2 additions and 0 deletions

View File

@ -122,6 +122,8 @@ static int do_rockchip_test(cmd_tbl_t *cmdtp, int flag,
else if (!strcmp(argv[1], CMD_MODE_V3))
skip_mode = TEST_SKIP_NORETURN_INTERACTIVE;
}
/* rktest all has no valid parameter */
argc = 1;
goto all_test;
} else {
if (!strcmp(argv[0], "storage"))