mirror of
https://github.com/mnauw/git-remote-hg.git
synced 2025-11-03 10:05:48 +01:00
test: split into setup test
Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
This commit is contained in:
@@ -106,17 +106,18 @@ setup () {
|
|||||||
|
|
||||||
setup
|
setup
|
||||||
|
|
||||||
test_expect_success 'cloning' '
|
test_expect_success 'setup' '
|
||||||
test_when_finished "rm -rf gitrepo*" &&
|
|
||||||
|
|
||||||
(
|
(
|
||||||
hg init hgrepo &&
|
hg init hgrepo &&
|
||||||
cd hgrepo &&
|
cd hgrepo &&
|
||||||
echo zero >content &&
|
echo zero >content &&
|
||||||
hg add content &&
|
hg add content &&
|
||||||
hg commit -m zero
|
hg commit -m zero
|
||||||
) &&
|
)
|
||||||
|
'
|
||||||
|
|
||||||
|
test_expect_success 'cloning' '
|
||||||
|
test_when_finished "rm -rf gitrepo*" &&
|
||||||
git clone "hg::hgrepo" gitrepo &&
|
git clone "hg::hgrepo" gitrepo &&
|
||||||
check gitrepo HEAD zero
|
check gitrepo HEAD zero
|
||||||
'
|
'
|
||||||
|
|||||||
Reference in New Issue
Block a user