From: "Torsten Bögershausen" <tboegi@web.de>
To: git@vger.kernel.org
Cc: tboegi@web.de
Subject: [PATCH] t9902: Be more specific when completing git-checkout
Date: Thu, 20 Dec 2012 18:31:03 +0100 [thread overview]
Message-ID: <201212201831.03590.tboegi@web.de> (raw)
t9902 is trying to complete e.g.
"git --version check" into "git --version checkout"
If there are other binaries like
"git-check-email" or "git-check-ignore" in the PATH
one test case failes
By using "checkou" instead of "check" the test becomes
more future proof.
Signed-off-by: Torsten Bögershausen <tboegi@web.de>
---
t/t9902-completion.sh | 24 ++++++++++++------------
1 file changed, 12 insertions(+), 12 deletions(-)
diff --git a/t/t9902-completion.sh b/t/t9902-completion.sh
index 3cd53f8..0e0e2d1 100755
--- a/t/t9902-completion.sh
+++ b/t/t9902-completion.sh
@@ -192,19 +192,19 @@ test_expect_success 'general options' '
'
test_expect_success 'general options plus command' '
- test_completion "git --version check" "checkout " &&
- test_completion "git --paginate check" "checkout " &&
- test_completion "git --git-dir=foo check" "checkout " &&
- test_completion "git --bare check" "checkout " &&
+ test_completion "git --version checkou" "checkout " &&
+ test_completion "git --paginate checkou" "checkout " &&
+ test_completion "git --git-dir=foo checkou" "checkout " &&
+ test_completion "git --bare checkou" "checkout " &&
test_completion "git --help des" "describe " &&
- test_completion "git --exec-path=foo check" "checkout " &&
- test_completion "git --html-path check" "checkout " &&
- test_completion "git --no-pager check" "checkout " &&
- test_completion "git --work-tree=foo check" "checkout " &&
- test_completion "git --namespace=foo check" "checkout " &&
- test_completion "git --paginate check" "checkout " &&
- test_completion "git --info-path check" "checkout " &&
- test_completion "git --no-replace-objects check" "checkout "
+ test_completion "git --exec-path=foo checkou" "checkout " &&
+ test_completion "git --html-path checkou" "checkout " &&
+ test_completion "git --no-pager checkou" "checkout " &&
+ test_completion "git --work-tree=foo checkou" "checkout " &&
+ test_completion "git --namespace=foo checkou" "checkout " &&
+ test_completion "git --paginate checkou" "checkout " &&
+ test_completion "git --info-path checkou" "checkout " &&
+ test_completion "git --no-replace-objects checkou" "checkout "
'
test_expect_success 'setup for ref completion' '
--
1.8.0
reply other threads:[~2012-12-20 17:31 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=201212201831.03590.tboegi@web.de \
--to=tboegi@web.de \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).