[PATCH 5/8] t: remote-hg: split into setup test
Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
---
t/t5810-remote-hg.sh | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/t/t5810-remote-hg.sh b/t/t5810-remote-hg.sh
index 594a0a1..ba8b2d8 100755
--- a/t/t5810-remote-hg.sh
+++ b/t/t5810-remote-hg.sh
@@ -105,17 +105,18 @@ setup () {
setup
-test_expect_success 'cloning' '
- test_when_finished "rm -rf gitrepo*" &&
-
+test_expect_success 'setup' '
(
hg init hgrepo &&
cd hgrepo &&
echo zero >content &&
hg add content &&
hg commit -m zero
- ) &&
+ )
+'
+test_expect_success 'cloning' '
+ test_when_finished "rm -rf gitrepo*" &&
git clone "hg::hgrepo" gitrepo &&
check gitrepo HEAD zero
'
--
1.9.2+fc1.3.gade8541