System test for aptly db cleanup.

This commit is contained in:
Andrey Smirnov
2014-02-12 20:33:16 +04:00
parent d4fb5853cc
commit ced832b1c0
8 changed files with 101 additions and 0 deletions
+5
View File
@@ -56,6 +56,7 @@ class BaseTest(object):
longTest = False
fixturePool = False
fixturePoolCopy = False
fixtureDB = False
fixtureGpg = False
fixtureWebServer = False
@@ -111,6 +112,10 @@ class BaseTest(object):
os.makedirs(os.path.join(os.environ["HOME"], ".aptly"), 0755)
os.symlink(self.fixturePoolDir, os.path.join(os.environ["HOME"], ".aptly", "pool"))
if self.fixturePoolCopy:
os.makedirs(os.path.join(os.environ["HOME"], ".aptly"), 0755)
shutil.copytree(self.fixturePoolDir, os.path.join(os.environ["HOME"], ".aptly", "pool"), ignore=shutil.ignore_patterns(".git"))
if self.fixtureDB:
shutil.copytree(self.fixtureDBDir, os.path.join(os.environ["HOME"], ".aptly", "db"))