]> git.ipfire.org Git - thirdparty/git.git/blobdiff - t/t7900-maintenance.sh
builtin/gc.c: let parse-options parse 'git maintenance's subcommands
[thirdparty/git.git] / t / t7900-maintenance.sh
index 74aa6384755ec6d53cf061a48dbe2cdfc93725f9..852498ff06acd37a8b096b3e1e3273dabd30d012 100755 (executable)
@@ -32,11 +32,13 @@ test_systemd_analyze_verify () {
 }
 
 test_expect_success 'help text' '
-       test_expect_code 129 git maintenance -h 2>err &&
-       test_i18ngrep "usage: git maintenance <subcommand>" err &&
-       test_expect_code 128 git maintenance barf 2>err &&
-       test_i18ngrep "invalid subcommand: barf" err &&
+       test_expect_code 129 git maintenance -h >actual &&
+       test_i18ngrep "usage: git maintenance <subcommand>" actual &&
+       test_expect_code 129 git maintenance barf 2>err &&
+       test_i18ngrep "unknown subcommand: \`barf'\''" err &&
+       test_i18ngrep "usage: git maintenance" err &&
        test_expect_code 129 git maintenance 2>err &&
+       test_i18ngrep "error: need a subcommand" err &&
        test_i18ngrep "usage: git maintenance" err
 '