summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorRené Scharfe <l.s.r@web.de>2017-02-05 11:43:29 (GMT)
committerJunio C Hamano <gitster@pobox.com>2017-02-06 18:55:25 (GMT)
commitc86000c1a7499541221fe087514299579895e807 (patch)
treee888c19465bcf427fa98634434555880282db513 /t
parent29401e15754518a0e63e00d6cabc5a5f2f9b0973 (diff)
downloadgit-c86000c1a7499541221fe087514299579895e807.zip
git-c86000c1a7499541221fe087514299579895e807.tar.gz
git-c86000c1a7499541221fe087514299579895e807.tar.bz2
p5302: create repositories for index-pack results explicitly
Before 7176a314 (index-pack: complain when --stdin is used outside of a repo) index-pack silently created a non-existing target directory; now the command refuses to work unless it's used against a valid repository. That causes p5302 to fail, which relies on the former behavior. Fix it by setting up the destinations for its performance tests using git init. Signed-off-by: Rene Scharfe <l.s.r@web.de> Acked-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't')
-rwxr-xr-xt/perf/p5302-pack-index.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/t/perf/p5302-pack-index.sh b/t/perf/p5302-pack-index.sh
index 5ee9211..99bdb16 100755
--- a/t/perf/p5302-pack-index.sh
+++ b/t/perf/p5302-pack-index.sh
@@ -13,6 +13,13 @@ test_expect_success 'repack' '
export PACK
'
+test_expect_success 'create target repositories' '
+ for repo in t1 t2 t3 t4 t5 t6
+ do
+ git init --bare $repo
+ done
+'
+
test_perf 'index-pack 0 threads' '
GIT_DIR=t1 git index-pack --threads=1 --stdin < $PACK
'