Skip to content

Commit

Permalink
[Review] xtest: add --clear-storage option
Browse files Browse the repository at this point in the history
s/argc > 1/argc == 2/ since the option takes no additional argument.

Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org>
  • Loading branch information
jforissier committed May 30, 2023
1 parent 62d44f6 commit 3b68334
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion host/xtest/xtest_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ int main(int argc, char *argv[])
#endif
else if (argc > 1 && !strcmp(argv[1], "--stats"))
return stats_runner_cmd_parser(argc - 1, &argv[1]);
else if (argc > 1 && !strcmp(argv[1], "--clear-storage"))
else if (argc == 2 && !strcmp(argv[1], "--clear-storage"))
return clear_storage();

while ((opt = getopt(argc, argv, "d:l:t:h")) != -1) {
Expand Down

0 comments on commit 3b68334

Please sign in to comment.