Received: from eggs.gnu.org ([2001:4830:134:3::10]:34461) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UpD6s-0003LL-PV for qemu-devel@nongnu.org; Wed, 19 Jun 2013 03:47:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UpD6p-0001GG-Sh for qemu-devel@nongnu.org; Wed, 19 Jun 2013 03:47:18 -0400 Received: from mx1.redhat.com ([209.132.183.28]:37117) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UpD6p-0001GB-Jf for qemu-devel@nongnu.org; Wed, 19 Jun 2013 03:47:15 -0400 Date: Wed, 19 Jun 2013 09:46:49 +0200 From: Stefan Hajnoczi Message-ID: <20130619074649.GD23822@stefanha-thinkpad.muc.redhat.com> References: <1371209999-15579-1-git-send-email-xiawenc@linux.vnet.ibm.com> <1371209999-15579-13-git-send-email-xiawenc@linux.vnet.ibm.com> <20130618143212.GP7649@stefanha-thinkpad.redhat.com> <51C14DEB.4050702@linux.vnet.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <51C14DEB.4050702@linux.vnet.ibm.com> Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH V2 12/12] qemu-iotests: add 055 internal snapshot for block device test case List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Wenchao Xia Cc: kwolf@redhat.com, phrdina@redhat.com, famz@redhat.com, Stefan Hajnoczi , armbru@redhat.com, qemu-devel@nongnu.org, pbonzini@redhat.com, lcapitulino@redhat.com, dietmar@proxmox.com On Wed, Jun 19, 2013 at 02:21:31PM +0800, Wenchao Xia wrote: > =E4=BA=8E 2013-6-18 22:32, Stefan Hajnoczi =E5=86=99=E9=81=93: > >On Fri, Jun 14, 2013 at 07:39:59PM +0800, Wenchao Xia wrote: > >>+ def createSnapshotInTransaction(self, snapshot_num): > >>+ actions =3D [] > >>+ for i in range(0, len(self.expect)): > >>+ num =3D self.expect[i]['snapshots_name_counter'] > >>+ for j in range(0, snapshot_num): > >>+ name =3D '%s_sn%d' % (self.expect[i]['device'], num) > >>+ num =3D num + 1 > >>+ self.expect[i]['snapshots'].append(name) > >>+ actions.append({ > >>+ 'type': 'blockdev-snapshot-internal-sync', > >>+ 'data': { 'device': self.expect[i]['device'], > >>+ 'name': name }, > >>+ }) > >>+ self.expect[i]['snapshots_name_counter'] =3D num > >>+ result =3D self.vm.qmp('transaction', actions =3D actions) > >>+ self.assert_qmp(result, 'return', {}) > > > >This tests the success case. Please also use the 'Abort' action to te= st > >the error case. > Is "Abort" upstreamed? If yes I will add that part. It's part of the drive-backup series which you have already cherry-picked from.