Skip to content

Commit

Permalink
t: remote-hg: split into setup test
Browse files Browse the repository at this point in the history
Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
  • Loading branch information
felipec committed Apr 12, 2014
1 parent 049d3cb commit 1bf5fc8
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions contrib/remote-helpers/test-hg.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
'
Expand Down

0 comments on commit 1bf5fc8

Please sign in to comment.