p0004: don't error out if test repo is too small
commitc5a915739386a59e00c95632801f43d4740a64aa
authorRené Scharfe <l.s.r@web.de>
Sat, 13 May 2017 16:03:50 +0000 (13 18:03 +0200)
committerJunio C Hamano <gitster@pobox.com>
Tue, 16 May 2017 02:11:56 +0000 (16 11:11 +0900)
treebb760bad3467039af2ff3ea4d59a8397d21ec2e7
parent7b0d409eb28c4c92fa292dfc3ac468cb0f42d2bf
p0004: don't error out if test repo is too small

Repositories with less than 4000 entries are always handled using a
single thread, causing test-lazy-init-name-hash --multi to error out.
Don't abort the whole test script in that case, but simply skip the
multi-threaded performance check.  We can still use it to compare the
single-threaded speed of different versions in that case.

Signed-off-by: Rene Scharfe <l.s.r@web.de>
Acked-by: Jeff Hostetler <git@jeffhostetler.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/perf/p0004-lazy-init-name-hash.sh