support the config.builddir in the testing suite

This commit is contained in:
Martin A. Brown 2016-03-07 20:00:22 -08:00
parent 29674dd7f0
commit 0ff6dc5594
1 changed files with 2 additions and 1 deletions

View File

@ -133,8 +133,9 @@ class TestInventoryBase(unittest.TestCase):
self.config, _ = collectconfiguration('ldptool', [])
c = self.config
c.pubdir = os.path.join(self.tempdir, 'outputs')
c.builddir = os.path.join(self.tempdir, 'builddir')
c.sourcedir = os.path.join(self.tempdir, 'sources')
for d in (c.sourcedir, c.pubdir):
for d in (c.sourcedir, c.pubdir, c.builddir):
if not os.path.isdir(d):
os.mkdir(d)
c.sourcedir = [c.sourcedir]