@matheusbsbs / matheus-bagliano / commits / 9288bedafa
Fork 0

Make t5710 more strict when creating nested repos

The test 'creating too deep nesting' can fail even when cloning the repos, but is not its main purpose (it has to prepare nested repos and ensure the last one is invalid). So split the test into the creation and invalidity checking parts. Signed-off-by: Alex Riesen <raa.lkml@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Alex Riesen committed Jan 21, 2008 at 21:53 UTC 9288bedafa5a61689d6bef920c707b1ff9fe080a
1 file changed +8 -4
t/t5710-info-alternate.sh
+8 -4
@@ -53,14 +53,18 @@ git prune'
53
54 cd "$base_dir"
55
56 -test_expect_failure 'creating too deep nesting' \
56 +test_expect_success 'creating too deep nesting' \
57 'git clone -l -s C D &&
58 git clone -l -s D E &&
59 git clone -l -s E F &&
60 git clone -l -s F G &&
61 -git clone -l -s G H &&
62 -cd H &&
63 -test_valid_repo'
61 +git clone -l -s G H'
62 +
63 +test_expect_success 'invalidity of deepest repository' \
64 +'cd H && {
65 + test_valid_repo
66 + test $? -ne 0
67 +}'
68
69 cd "$base_dir"
70