def do_test_device_not_found(self, cmd, **args):
result = self.vm.qmp(cmd, **args)
- if cmd == 'drive-backup':
- self.assert_qmp(result, 'error/class', 'DeviceNotFound')
- else:
- self.assert_qmp(result, 'error/class', 'GenericError')
+ self.assert_qmp(result, 'error/class', 'GenericError')
def test_device_not_found(self):
self.do_test_device_not_found('drive-backup', device='nonexistent',
'sync': 'full' },
}
])
- self.assert_qmp(result, 'error/class', 'DeviceNotFound')
+ self.assert_qmp(result, 'error/class', 'GenericError')
result = self.vm.qmp('transaction', actions=[{
'type': 'blockdev-backup',