Fix test depending on $HOME.

This commit is contained in:
Andrey Smirnov
2014-02-26 13:42:36 +04:00
parent 653a7d8d5a
commit 8ebc3e65a5
2 changed files with 2 additions and 1 deletions

View File

@@ -1,2 +1,2 @@
Loading packages...
[!] Unable to import file /pyspi_0.6.1.orig.tar.gz into pool: unable to import into pool: file /Users/smira/.aptly/pool/de/f3/pyspi_0.6.1.orig.tar.gz already exists
[!] Unable to import file /pyspi_0.6.1.orig.tar.gz into pool: unable to import into pool: file ${HOME}/.aptly/pool/de/f3/pyspi_0.6.1.orig.tar.gz already exists

View File

@@ -188,6 +188,7 @@ class AddRepo9Test(BaseTest):
]
runCmd = "aptly repo add repo9 ${files}/pyspi_0.6.1-1.3.dsc"
outputMatchPrepare = lambda self, s: s.replace(os.path.join(os.path.dirname(inspect.getsourcefile(BaseTest)), "files"), "")
gold_processor = BaseTest.expand_environ
def prepare(self):
super(AddRepo9Test, self).prepare()