ctdb-tests: Update cmdline tests for section name
authorAmitay Isaacs <amitay@gmail.com>
Mon, 11 Nov 2019 06:05:53 +0000 (17:05 +1100)
committerMartin Schwenke <martins@samba.org>
Thu, 14 Nov 2019 10:38:34 +0000 (10:38 +0000)
Signed-off-by: Amitay Isaacs <amitay@gmail.com>
Reviewed-by: Martin Schwenke <martin@meltin.net>
ctdb/tests/UNIT/cunit/cmdline_test_001.sh
ctdb/tests/src/cmdline_test.c

index 72089519f5e99665277cda3dedbd120d191957e9..2835c8e574e0edee6ab1e2e664b28d0dda21659d 100755 (executable)
@@ -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
index 98ce65b0881bd3175aac3a182d69ecc35488b285..72c34acd6542a758526021e320056c484c8b3af3 100644 (file)
@@ -286,7 +286,7 @@ static void test5(void)
        ret = cmdline_init(mem_ctx,
                           "test5",
                           NULL,
-                          NULL,
+                          "Action",
                           action_commands,
                           &cmdline);
        assert(ret == 0);