test: split into setup test

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
This commit is contained in:
Felipe Contreras
2014-04-12 12:49:40 -05:00
parent ccb3f13d69
commit 32d4f36f22

View File

@@ -106,17 +106,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
'