Update from upstream #11
@ -53,7 +53,7 @@ class ImageContainerThread(WorkerThread):
|
|||||||
self._get_repo(
|
self._get_repo(
|
||||||
compose,
|
compose,
|
||||||
variant,
|
variant,
|
||||||
config.get("arch_override", "").split(" "),
|
config.get("arch_override", "").split(),
|
||||||
config.pop("image_spec"),
|
config.pop("image_spec"),
|
||||||
)
|
)
|
||||||
]
|
]
|
||||||
@ -95,7 +95,7 @@ class ImageContainerThread(WorkerThread):
|
|||||||
if not re.match(value, getattr(image, key)):
|
if not re.match(value, getattr(image, key)):
|
||||||
break
|
break
|
||||||
else:
|
else:
|
||||||
image_paths.add(image.path)
|
image_paths.add(image.path.replace(arch, "$basearch"))
|
||||||
|
|
||||||
if len(image_paths) != 1:
|
if len(image_paths) != 1:
|
||||||
raise RuntimeError(
|
raise RuntimeError(
|
||||||
|
@ -130,7 +130,6 @@ class ImageContainerThreadTest(helpers.PungiTestCase):
|
|||||||
"target": "f24-docker-candidate",
|
"target": "f24-docker-candidate",
|
||||||
"git_branch": "f24-docker",
|
"git_branch": "f24-docker",
|
||||||
"image_spec": {"type": "qcow2"},
|
"image_spec": {"type": "qcow2"},
|
||||||
"arch_override": "x86_64",
|
|
||||||
}
|
}
|
||||||
self.compose.im.images["Server"] = {
|
self.compose.im.images["Server"] = {
|
||||||
"x86_64": [
|
"x86_64": [
|
||||||
@ -150,7 +149,7 @@ class ImageContainerThreadTest(helpers.PungiTestCase):
|
|||||||
repo_content = list(f)
|
repo_content = list(f)
|
||||||
self.assertIn("[image-to-include]\n", repo_content)
|
self.assertIn("[image-to-include]\n", repo_content)
|
||||||
self.assertIn(
|
self.assertIn(
|
||||||
"baseurl=http://root/compose/Server/x86_64/images/image.qcow2\n",
|
"baseurl=http://root/compose/Server/$basearch/images/image.qcow2\n",
|
||||||
repo_content,
|
repo_content,
|
||||||
)
|
)
|
||||||
self.assertIn("enabled=0\n", repo_content)
|
self.assertIn("enabled=0\n", repo_content)
|
||||||
@ -158,7 +157,6 @@ class ImageContainerThreadTest(helpers.PungiTestCase):
|
|||||||
def assertKojiCalls(self, cfg, scratch=False):
|
def assertKojiCalls(self, cfg, scratch=False):
|
||||||
opts = {
|
opts = {
|
||||||
"git_branch": cfg["git_branch"],
|
"git_branch": cfg["git_branch"],
|
||||||
"arch_override": cfg["arch_override"],
|
|
||||||
"yum_repourls": ["http://root/" + self.repofile_path],
|
"yum_repourls": ["http://root/" + self.repofile_path],
|
||||||
}
|
}
|
||||||
if scratch:
|
if scratch:
|
||||||
|
Loading…
Reference in New Issue
Block a user