From 946b933f9ee25ae3ce4d86ae3b9c38bbd6d6e924 Mon Sep 17 00:00:00 2001 From: Pekka Paalanen Date: Wed, 17 Feb 2021 13:25:01 +0200 Subject: [PATCH] tests: clarify --help Use consistent terminology with the code: index starts from zero, numbering starts from one. Fixture 0 runs all fixtures. Suggested-by: Marius Vlad Signed-off-by: Pekka Paalanen --- tests/weston-test-runner.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tests/weston-test-runner.c b/tests/weston-test-runner.c index e64d263e..d8becc31 100644 --- a/tests/weston-test-runner.c +++ b/tests/weston-test-runner.c @@ -344,15 +344,16 @@ static void help(const char *exe) { printf( - "Usage: %s [options] [testname [index]]\n" + "Usage: %s [options] [testname [number]]\n" "\n" "This is a Weston test suite executable that runs some tests.\n" "Options:\n" - " -f, --fixture N Run only fixture index N. Indices start from 1.\n" + " -f, --fixture N Run only fixture number N. 0 runs all (default).\n" " -h, --help Print this help and exit with success.\n" " -l, --list List all tests in this executable and exit with success.\n" "testname: Optional; name of the test to execute instead of all tests.\n" - "index: Optional; for a multi-case test, run the given case only.\n", + "number: Optional; for a multi-case test, run the given case only.\n" + "Both fixture and case numbering starts from 1.\n", exe); }