From: Amitay Isaacs Date: Mon, 11 Nov 2019 06:05:53 +0000 (+1100) Subject: ctdb-tests: Update cmdline tests for section name X-Git-Tag: talloc-2.3.1~22 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7a008c6b74e559a3e677257be3ea57a5821e3e9c;p=thirdparty%2Fsamba.git ctdb-tests: Update cmdline tests for section name Signed-off-by: Amitay Isaacs Reviewed-by: Martin Schwenke --- diff --git a/ctdb/tests/UNIT/cunit/cmdline_test_001.sh b/ctdb/tests/UNIT/cunit/cmdline_test_001.sh index 72089519f5e..2835c8e574e 100755 --- a/ctdb/tests/UNIT/cunit/cmdline_test_001.sh +++ b/ctdb/tests/UNIT/cunit/cmdline_test_001.sh @@ -46,7 +46,7 @@ Usage: test5 [] [] Help Options: -h, --help Show this help message -Commands: +Action Commands: action one action one help action two action two help Usage: test5 [] [] @@ -54,7 +54,7 @@ Usage: test5 [] [] Help Options: -h, --help Show this help message -Commands: +Action Commands: action one action one help action two action two help Usage: test5 [] [] @@ -62,7 +62,7 @@ Usage: test5 [] [] Help Options: -h, --help Show this help message -Commands: +Action Commands: action one action one help action two action two help EOF diff --git a/ctdb/tests/src/cmdline_test.c b/ctdb/tests/src/cmdline_test.c index 98ce65b0881..72c34acd654 100644 --- a/ctdb/tests/src/cmdline_test.c +++ b/ctdb/tests/src/cmdline_test.c @@ -286,7 +286,7 @@ static void test5(void) ret = cmdline_init(mem_ctx, "test5", NULL, - NULL, + "Action", action_commands, &cmdline); assert(ret == 0);