tests: Fix makeFakeRPM calls

(cherry picked from commit 28bd68793b)
This commit is contained in:
Brian C. Lane 2019-02-21 10:10:11 -08:00
parent b537d653c4
commit 30098a52e3

View File

@ -111,11 +111,11 @@ class LoraxTemplateRunnerTestCase(unittest.TestCase):
makeFakeRPM(self.repo1_dir, "fake-milhouse", 0, "1.0.0", "1") makeFakeRPM(self.repo1_dir, "fake-milhouse", 0, "1.0.0", "1")
makeFakeRPM(self.repo1_dir, "fake-bart", 2, "1.13.0", "6") makeFakeRPM(self.repo1_dir, "fake-bart", 2, "1.13.0", "6")
makeFakeRPM(self.repo1_dir, "fake-homer", 0, "0.4.0", "2") makeFakeRPM(self.repo1_dir, "fake-homer", 0, "0.4.0", "2")
makeFakeRPM(self.repo1_dir, "lots-of-files", 0, "0.1.1", 1, makeFakeRPM(self.repo1_dir, "lots-of-files", 0, "0.1.1", "1",
["/lorax-files/file-one.txt", ["/lorax-files/file-one.txt",
"/lorax-files/file-two.txt", "/lorax-files/file-two.txt",
"/lorax-files/file-three.txt"]) "/lorax-files/file-three.txt"])
makeFakeRPM(self.repo1_dir, "known-path", 0, "0.1.8", 1, ["/known-path/file-one.txt"]) makeFakeRPM(self.repo1_dir, "known-path", 0, "0.1.8", "1", ["/known-path/file-one.txt"])
os.system("createrepo_c " + self.repo1_dir) os.system("createrepo_c " + self.repo1_dir)
self.repo2_dir = tempfile.mkdtemp(prefix="lorax.test.repo.") self.repo2_dir = tempfile.mkdtemp(prefix="lorax.test.repo.")