From 581f76e2c0217c5f4c33652ce526bac65ce8ebed Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Thu, 3 May 2012 14:51:11 +0100 Subject: Make cmdtests set up repo-aliases and use prefixed reponames --- tests.as-root/setup | 4 ++-- tests.branching/setup | 5 +++-- tests/setup | 4 ++-- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/tests.as-root/setup b/tests.as-root/setup index 004c0ceb..0b78ef9f 100755 --- a/tests.as-root/setup +++ b/tests.as-root/setup @@ -93,7 +93,7 @@ cat < hello-stratum.morph "sources": [ { "name": "hello", - "repo": "chunk-repo", + "repo": "test:chunk-repo", "ref": "farrokh" } ] @@ -119,7 +119,7 @@ git commit --quiet -m "add morphs" # Create a morph configuration file. cat < "$DATADIR/morph.conf" [config] -git-base-url = file://$DATADIR/ +repo-alias = test=file://$DATADIR/#file://$DATADIR/ cachedir = $DATADIR/cache log = $DATADIR/morph.log keep-path = true diff --git a/tests.branching/setup b/tests.branching/setup index 261e7142..3b9b9381 100755 --- a/tests.branching/setup +++ b/tests.branching/setup @@ -28,7 +28,7 @@ set -eu # Create a morph configuration file cat < "$DATADIR/morph.conf" [config] -git-base-url = file://$DATADIR/ +repo-alias = test=file://$DATADIR/#file://$DATADIR/ cachedir = $DATADIR/mine/.morph/cache log = $DATADIR/morph.log keep-path = true @@ -61,7 +61,8 @@ cat < "$DATADIR/morphs/hello-stratum.chunk" "sources": [ { "name": "hello", - "ref": "master" + "ref": "master", + "repo": "test:hello" } ] } diff --git a/tests/setup b/tests/setup index 004c0ceb..84cf1d7e 100755 --- a/tests/setup +++ b/tests/setup @@ -93,7 +93,7 @@ cat < hello-stratum.morph "sources": [ { "name": "hello", - "repo": "chunk-repo", + "repo": "test:chunk-repo", "ref": "farrokh" } ] @@ -119,7 +119,7 @@ git commit --quiet -m "add morphs" # Create a morph configuration file. cat < "$DATADIR/morph.conf" [config] -git-base-url = file://$DATADIR/ +repo-alias = test:file://$DATADIR/#file://$DATADIR/ cachedir = $DATADIR/cache log = $DATADIR/morph.log keep-path = true -- cgit v1.2.1