196 (1ada73fbea540c9b397b08da6f1110fced1c0840) 196 (b6aed193e5ecca32bb07e062f58f0daca06e7009)
1#!/usr/bin/env python3
2# group: rw quick migration
3#
4# Test clearing unknown autoclear_features flag by qcow2 after
5# migration. This test mimics migration to older qemu.
6#
7# Copyright (c) 2017 Parallels International GmbH
8#

--- 31 unchanged lines hidden (view full) ---

40
41 self.vm_a = iotests.VM(path_suffix='a').add_drive(disk)
42 self.vm_a.launch()
43
44 self.vm_b = iotests.VM(path_suffix='b').add_drive(disk)
45 self.vm_b.add_incoming("exec: cat '" + migfile + "'")
46
47 def test_migration(self):
1#!/usr/bin/env python3
2# group: rw quick migration
3#
4# Test clearing unknown autoclear_features flag by qcow2 after
5# migration. This test mimics migration to older qemu.
6#
7# Copyright (c) 2017 Parallels International GmbH
8#

--- 31 unchanged lines hidden (view full) ---

40
41 self.vm_a = iotests.VM(path_suffix='a').add_drive(disk)
42 self.vm_a.launch()
43
44 self.vm_b = iotests.VM(path_suffix='b').add_drive(disk)
45 self.vm_b.add_incoming("exec: cat '" + migfile + "'")
46
47 def test_migration(self):
48 result = self.vm_a.qmp('migrate', uri='exec:cat>' + migfile)
49 self.assert_qmp(result, 'return', {})
48 self.vm_a.cmd('migrate', uri='exec:cat>' + migfile)
50 self.assertNotEqual(self.vm_a.event_wait("STOP"), None)
51
52 with open(disk, 'r+b') as f:
53 f.seek(88) # first byte of autoclear_features field
54 f.write(b'\xff')
55
56 self.vm_b.launch()
57 while True:

--- 12 unchanged lines hidden ---
49 self.assertNotEqual(self.vm_a.event_wait("STOP"), None)
50
51 with open(disk, 'r+b') as f:
52 f.seek(88) # first byte of autoclear_features field
53 f.write(b'\xff')
54
55 self.vm_b.launch()
56 while True:

--- 12 unchanged lines hidden ---