{"thread":{"id":"11697","subject":"[PATCH] Make t5710 more strict when creating nested repos","startedAt":"2008-01-21T20:53:25Z","lastAt":"2008-01-21T20:53:25Z","messageCount":1,"participants":["Alex Riesen"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"66192","messageId":"20080121205325.GA16670@steel.home","threadId":"11697","inReplyTo":null,"subject":"[PATCH] Make t5710 more strict when creating nested repos","fromName":"Alex Riesen","fromEmail":"raa.lkml@gmail.com","sentAt":"2008-01-21T20:53:25Z","receivedAt":"2008-01-21T20:53:25Z","isPatch":true,"sender":{"key":"raa.lkml@gmail.com","avatar":"https://avatars.githubusercontent.com/u/324101?v=4"},"body":"The test 'creating too deep nesting' can fail even when cloning the repos,\nbut is not its main purpose (it has to prepare nested repos and ensure\nthe last one is invalid). So split the test into the creation and\ninvalidity checking parts.\n\nSigned-off-by: Alex Riesen <raa.lkml@gmail.com>\n---\n\nNoticed try to figure out why the test breaks on cygwin with the\nrecent in-core-index branch. Didn't manage that, though.\n\n t/t5710-info-alternate.sh |   12 ++++++++----\n 1 files changed, 8 insertions(+), 4 deletions(-)\n\ndiff --git a/t/t5710-info-alternate.sh b/t/t5710-info-alternate.sh\nindex 699df6e..1908dc8 100755\n--- a/t/t5710-info-alternate.sh\n+++ b/t/t5710-info-alternate.sh\n@@ -53,14 +53,18 @@ git prune'\n \n cd \"$base_dir\"\n \n-test_expect_failure 'creating too deep nesting' \\\n+test_expect_success 'creating too deep nesting' \\\n 'git clone -l -s C D &&\n git clone -l -s D E &&\n git clone -l -s E F &&\n git clone -l -s F G &&\n-git clone -l -s G H &&\n-cd H &&\n-test_valid_repo'\n+git clone -l -s G H'\n+\n+test_expect_success 'invalidity of deepest repository' \\\n+'cd H && {\n+\ttest_valid_repo\n+\ttest $? -ne 0\n+}'\n \n cd \"$base_dir\"\n \n-- \n1.5.4.rc3.49.gd0cc3\n"}]}