Fix qemu-img rebase code to support Qemu 6.1. Ref https://github.com/GNS3/gns3-server/pull/1962

This commit is contained in:
grossmj committed 2021-09-05 22:18:46 +09:30
1 parent 99d7d0c769
commit 611570a863
3 files changed
+10 -6

No files matched your search

+1 -1
View File
@@ -73,5 +73,5 @@ async def test_rebase(loop, tmpdir):
qcow2 = Qcow2(str(tmpdir / "linked.qcow2"))
assert qcow2.version == 3
assert qcow2.backing_file == "empty8G.qcow2"
await qcow2.rebase(qemu_img(), str(tmpdir / "empty16G.qcow2"))
await qcow2.rebase(qemu_img(), str(tmpdir / "empty16G.qcow2"), "qcow2")
assert qcow2.backing_file == str(tmpdir / "empty16G.qcow2")