From: Patrick Steinhardt <ps@pks.im>
To: Junio C Hamano <gitster@pobox.com>
Cc: git@vger.kernel.org
Subject: Re: [PATCH] t1517: more coverage for commands that work without repository
Date: Fri, 31 May 2024 13:26:44 +0200 [thread overview]
Message-ID: <Zlmz9Edyv_gehMVr@tanuki> (raw)
In-Reply-To: <xmqqbk4np77d.fsf@gitster.g>
[-- Attachment #1: Type: text/plain, Size: 706 bytes --]
On Thu, May 30, 2024 at 09:58:46AM -0700, Junio C Hamano wrote:
[snip]
> +test_expect_success 'stripspace outside repository' '
> + nongit git stripspace -s </dev/null
> +'
I was wondering whether we also want to verify that it does the correct
thing here as it's comparatively easy:
test_expect_success 'stripspace outside repository' '
cat >input <<-EOF &&
# foo
bar
EOF
cat >expect <<-EOF &&
bar
EOF
git stripspace -s <input >actual &&
test_cmp expect actual &&
nongit git stripspace -s <input >actual &&
test_cmp expect actual
'
For the other tests it's a bit more involved. And given that these are
all designed as smoke tests, I think it's fine overall.
Thanks!
Patrick
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
next prev parent reply other threads:[~2024-05-31 11:26 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-05-30 16:58 [PATCH] t1517: more coverage for commands that work without repository Junio C Hamano
2024-05-31 8:43 ` [PATCH v2] " Junio C Hamano
2024-05-31 11:26 ` Patrick Steinhardt [this message]
2024-05-31 14:57 ` [PATCH] " Junio C Hamano
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=Zlmz9Edyv_gehMVr@tanuki \
--to=ps@pks.im \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
/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