summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Boeckel <ben.boeckel@kitware.com>2016-02-17 09:50:43 -0500
committerBen Boeckel <ben.boeckel@kitware.com>2016-07-14 16:21:45 -0400
commitbae97d17d0adc6aac0083f2686c0121a3819fab3 (patch)
tree921fca85ce6ce1a31e02116e7bad7c65ec9ce0d4
parentbdf82246f7569ea655544743eecb0d5ecf059626 (diff)
downloadspack-bae97d17d0adc6aac0083f2686c0121a3819fab3.tar.gz
spack-bae97d17d0adc6aac0083f2686c0121a3819fab3.tar.bz2
spack-bae97d17d0adc6aac0083f2686c0121a3819fab3.tar.xz
spack-bae97d17d0adc6aac0083f2686c0121a3819fab3.zip
test: use file:// url for git repos
-rw-r--r--lib/spack/spack/test/mock_repo.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/spack/spack/test/mock_repo.py b/lib/spack/spack/test/mock_repo.py
index a8098b8eec..386af282e7 100644
--- a/lib/spack/spack/test/mock_repo.py
+++ b/lib/spack/spack/test/mock_repo.py
@@ -103,6 +103,8 @@ class MockGitRepo(MockVCSRepo):
def __init__(self):
super(MockGitRepo, self).__init__('mock-git-stage', 'mock-git-repo')
+ self.url = 'file://' + self.path
+
with working_dir(self.path):
git('init')
@@ -140,8 +142,6 @@ class MockGitRepo(MockVCSRepo):
self.r1 = self.rev_hash(self.branch)
self.r1_file = self.branch_file
- self.url = self.path
-
def rev_hash(self, rev):
return git('rev-parse', rev, output=str).strip()