summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAmitay Isaacs <amitay@gmail.com>2019-11-11 17:05:53 +1100
committerMartin Schwenke <martins@samba.org>2019-11-14 10:38:34 +0000
commit7a008c6b74e559a3e677257be3ea57a5821e3e9c (patch)
tree5015237247bc2e9bce1717f0727e98b02c523a5c
parentb2b24c91fae30edf797ed30e3c45c259aee00853 (diff)
downloadsamba-7a008c6b74e559a3e677257be3ea57a5821e3e9c.tar.gz
ctdb-tests: Update cmdline tests for section name
Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net>
-rwxr-xr-xctdb/tests/UNIT/cunit/cmdline_test_001.sh6
-rw-r--r--ctdb/tests/src/cmdline_test.c2
2 files changed, 4 insertions, 4 deletions
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 [<options>] <command> [<args>]
Help Options:
-h, --help Show this help message
-Commands:
+Action Commands:
action one action one help
action two action two help
Usage: test5 [<options>] <command> [<args>]
@@ -54,7 +54,7 @@ Usage: test5 [<options>] <command> [<args>]
Help Options:
-h, --help Show this help message
-Commands:
+Action Commands:
action one action one help
action two action two help
Usage: test5 [<options>] <command> [<args>]
@@ -62,7 +62,7 @@ Usage: test5 [<options>] <command> [<args>]
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);