test: fix typo in cmd_ut_category() description
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Mon, 27 Aug 2018 20:04:10 +0000 (22:04 +0200)
committerTom Rini <trini@konsulko.com>
Fri, 31 Aug 2018 15:59:44 +0000 (11:59 -0400)
argc = 1: all tests are run
argc > 1: only argv[1] is run

So we need argc >= 1.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Reviewed-by: Simon Glass <sjg@chromium.org>
include/test/suites.h

index b5019a7..071ab40 100644 (file)
@@ -15,7 +15,7 @@ struct unit_test;
  * @name:      Category name
  * @tests:     List of tests to run
  * @n_ents:    Number of tests in @tests
- * @argc:      Argument count provided. Must be <= 1. If this is 1 then all
+ * @argc:      Argument count provided. Must be >= 1. If this is 1 then all
  *             tests are run, otherwise only the one named @argv[1] is run.
  * @argv:      Arguments: argv[1] is the test to run (if @argc >= 2)
  * @return 0 if OK, CMD_RET_FAILURE on failure