* [PATCH] t/t0211-trace2-perf.sh: fix typo patern -> pattern
@ 2024-05-15 22:51 Marcel Telka
2024-05-16 4:17 ` Patrick Steinhardt
0 siblings, 1 reply; 3+ messages in thread
From: Marcel Telka @ 2024-05-15 22:51 UTC (permalink / raw)
To: git
Signed-off-by: Marcel Telka <marcel@telka.sk>
---
t/t0211-trace2-perf.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/t/t0211-trace2-perf.sh b/t/t0211-trace2-perf.sh
index 13ef69b92f..070fe7a5da 100755
--- a/t/t0211-trace2-perf.sh
+++ b/t/t0211-trace2-perf.sh
@@ -233,7 +233,7 @@ have_counter_event () {
pattern="d0|${thread}|${event}||||${category}|name:${name} value:${value}" &&
- grep "${patern}" ${file}
+ grep "${pattern}" ${file}
}
test_expect_success 'global counter test/test1' '
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] t/t0211-trace2-perf.sh: fix typo patern -> pattern
2024-05-15 22:51 [PATCH] t/t0211-trace2-perf.sh: fix typo patern -> pattern Marcel Telka
@ 2024-05-16 4:17 ` Patrick Steinhardt
2024-05-16 15:38 ` Junio C Hamano
0 siblings, 1 reply; 3+ messages in thread
From: Patrick Steinhardt @ 2024-05-16 4:17 UTC (permalink / raw)
To: Marcel Telka; +Cc: git
[-- Attachment #1: Type: text/plain, Size: 833 bytes --]
On Thu, May 16, 2024 at 12:51:00AM +0200, Marcel Telka wrote:
Thanks for the patch, which looks obviously good to me. It would be nice
to have a short explanation in the commit message that explains why this
issue was able to sneak.
Patrick
> Signed-off-by: Marcel Telka <marcel@telka.sk>
> ---
> t/t0211-trace2-perf.sh | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/t/t0211-trace2-perf.sh b/t/t0211-trace2-perf.sh
> index 13ef69b92f..070fe7a5da 100755
> --- a/t/t0211-trace2-perf.sh
> +++ b/t/t0211-trace2-perf.sh
> @@ -233,7 +233,7 @@ have_counter_event () {
>
> pattern="d0|${thread}|${event}||||${category}|name:${name} value:${value}" &&
>
> - grep "${patern}" ${file}
> + grep "${pattern}" ${file}
> }
>
> test_expect_success 'global counter test/test1' '
>
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] t/t0211-trace2-perf.sh: fix typo patern -> pattern
2024-05-16 4:17 ` Patrick Steinhardt
@ 2024-05-16 15:38 ` Junio C Hamano
0 siblings, 0 replies; 3+ messages in thread
From: Junio C Hamano @ 2024-05-16 15:38 UTC (permalink / raw)
To: Patrick Steinhardt; +Cc: Marcel Telka, git
Patrick Steinhardt <ps@pks.im> writes:
> On Thu, May 16, 2024 at 12:51:00AM +0200, Marcel Telka wrote:
>
> Thanks for the patch, which looks obviously good to me. It would be nice
> to have a short explanation in the commit message that explains why this
> issue was able to sneak.
>
> Patrick
A good piece of advice.
FYI, I have the following since last night, as the original report
was whitespace damaged and did not apply.
-------- >8 --------------- >8 --------------- >8 --------
Subject: [PATCH] t0211: typofix
Marcel Telka noticed that one test assigns to $pattern and then
uses $patern in an invocation of "grep". Of course, looking for
an empty string will succeed, so the test succeeds for a wrong
reason.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
---
t/t0211-trace2-perf.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/t/t0211-trace2-perf.sh b/t/t0211-trace2-perf.sh
index 0b3436e8ca..37a51e6449 100755
--- a/t/t0211-trace2-perf.sh
+++ b/t/t0211-trace2-perf.sh
@@ -233,7 +233,7 @@ have_counter_event () {
pattern="d0|${thread}|${event}||||${category}|name:${name} value:${value}" &&
- grep "${patern}" ${file}
+ grep "${pattern}" ${file}
}
test_expect_success 'global counter test/test1' '
--
2.45.1-190-g19fe900cfc
^ permalink raw reply related [flat|nested] 3+ messages in thread
end of thread, other threads:[~2024-05-16 15:40 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-05-15 22:51 [PATCH] t/t0211-trace2-perf.sh: fix typo patern -> pattern Marcel Telka
2024-05-16 4:17 ` Patrick Steinhardt
2024-05-16 15:38 ` Junio C Hamano
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).