Skip to content

Commit 13a177b

Browse files
brlane-rhtsupakeen
authored andcommitted
tests: Run rpm-ostree status when testing pxe boot
Check the booted system to make sure it used the expected container reference. bootc status does not work with the PXE images, but rpm-ostree status does, so let's use that for now.
1 parent cb168e9 commit 13a177b

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

test/bib/test_build_pxe.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,8 @@ def boot_qemu_pxe(arch, pxe_tar_path, container_ref, username, password, ssh_key
8888
vm.start(use_ovmf=use_ovmf)
8989
vm.run("true", user=username, password=password)
9090
vm.run("mount", user="root", keyfile=ssh_key_path)
91-
# ret = vm.run(["bootc", "status"], user="root", keyfile=ssh_key_path)
92-
# assert f"image: {container_ref}" in ret.stdout
91+
ret = vm.run(["rpm-ostree", "status"], user="root", keyfile=ssh_key_path)
92+
assert container_ref in ret.stdout
9393
finally:
9494
http_server.shutdown()
9595

@@ -177,7 +177,7 @@ def test_bootc_pxe_tar_xz(keep_tmpdir, tmp_path, build_container, container_ref)
177177
subprocess.check_call(cmd)
178178
assert os.path.exists(output_path / "xz" / "pxe.tar.xz")
179179
boot_qemu_pxe(platform.machine(), output_path / "xz" / "pxe.tar.xz",
180-
container_ref,
180+
container_tag,
181181
username, password,
182182
ssh_keyfile_private_path,
183183
keep_tmpdir)

0 commit comments

Comments
 (0)