t/t0211-trace2-perf.sh: fix typo patern -> pattern
PATCH v2 1/1 t/t0211-trace2-perf.sh: fix typo patern -> pattern
The bug went unnoticed because grep with null RE matches everything.
Signed-off-by Marcel Telka <[email protected]>
--- t/t0211-trace2-perf.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
t/t0211-trace2-perf.sh +1 -1
@@ -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' '
Quoted 6 lines · Marcel Telka
The bug went unnoticed because grep with null RE matches everything.
Signed-off-by Marcel Telka <[email protected]>--- t/t0211-trace2-perf.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Thanks. Will queue.
Quoted 13 lines
t/t0211-trace2-perf.sh +1
-1@@ -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' '