Skip to contentSkip to conversation

t9142: Move call to start_httpd into the setup test

PATCH In review Ramsay Jones 1 participant 1 message Jun 15, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 2/14 t9142: Move call to start_httpd into the setup test

In addition to being more consistent with the other calls to start_httpd in tests t9115-*.sh, t9118-*.sh and t9120-*.sh, this has the added benefit of making the test less noisy. (start_httpd writes "SVN_HTTPD_PORT is not defined!" on stderr.)

---
 t/t9142-git-svn-shallow-clone.sh |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)
t/t9142-git-svn-shallow-clone.sh +2 -3
index 1236acc..e21ee5f 100755
@@ -17,11 +17,10 @@ test_expect_success 'setup test repository' '
 		> foo &&
 		svn_cmd add foo &&
 		svn_cmd commit -m "add foo"
-	)
+	) &&
+	start_httpd
 '
 
-start_httpd
-
 test_expect_success 'clone trunk with "-r HEAD"' '
 	git svn clone -r HEAD "$svnrepo/trunk" g &&
 	( cd g && git rev-parse --symbolic --verify HEAD )
Signature · 1 line
1.7.3