From 4da4b665efb1da4c614fa4b6f66be57d92dbc900 Mon Sep 17 00:00:00 2001 From: "Brian C. Lane" Date: Tue, 20 Aug 2019 16:45:26 -0700 Subject: [PATCH] tests: Use server-2.repo instead of single.repo And use the working directory for the graft, not the root filesystem. --- tests/pylorax/test_imgutils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/pylorax/test_imgutils.py b/tests/pylorax/test_imgutils.py index 15e1857f..850d5219 100644 --- a/tests/pylorax/test_imgutils.py +++ b/tests/pylorax/test_imgutils.py @@ -264,7 +264,7 @@ class ImgUtilsTest(unittest.TestCase): with tempfile.TemporaryDirectory(prefix="lorax.test.") as work_dir: with tempfile.NamedTemporaryFile(prefix="lorax.test.disk.") as disk_img: mkfakerootdir(work_dir) - graft = {"/etc/yum.repos.d/": "./tests/pylorax/repos/single.repo"} + graft = {work_dir+"/etc/yum.repos.d/": "./tests/pylorax/repos/server-2.repo"} mkext4img(work_dir, disk_img.name, graft=graft) self.assertTrue(os.path.exists(disk_img.name)) file_details = get_file_magic(disk_img.name)