Rebase the qcow2 when starting the VM if needed

Ref #466
This commit is contained in:
Julien Duponchelle committed 2016-04-05 12:41:26 +02:00
1 parent 7422b31b2c
commit 57394dfebf
3 files changed
+11 -3

No files matched your search

+1 -2
View File
@@ -20,7 +20,7 @@ import pytest
import shutil
import asyncio
from gns3server.modules.qemu.qcow2 import Qcow2,Qcow2Error
from gns3server.modules.qemu.qcow2 import Qcow2, Qcow2Error
def qemu_img():
@@ -65,4 +65,3 @@ def test_rebase(tmpdir, loop):
assert qcow2.backing_file == "empty8G.qcow2"
loop.run_until_complete(asyncio.async(qcow2.rebase(qemu_img(), str(tmpdir / "empty16G.qcow2"))))
assert qcow2.backing_file == str(tmpdir / "empty16G.qcow2")