From: Junio C Hamano Date: Wed, 14 Jun 2023 00:32:16 GMT Subject: Re: [PATCH v3 10/16] refs/packed-backend.c: add trace2 counters for jump list Message-ID: In-Reply-To: <3c045076a95fab9d050a312114c9aca712eb7141.1686134440.git.me@ttaylorr.com> Taylor Blau writes: > +assert_jumps () { > + local nr="$1" > + local trace="$2" > + > + grep -q "name:jumps_made value:$nr" $trace > +} You may expect 1 hit and the test will pass if trace had 10 or 12 hits.