From nobody Mon Apr 29 00:19:47 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=linux.ibm.com ARC-Seal: i=1; a=rsa-sha256; t=1565037750; cv=none; d=zoho.com; s=zohoarc; b=enVHUhvx7BMDllf1yHwlsxRh83bpF/pNjbKVLcqkBWztdWnchknQJ8wRpZMUS17guZnclW7864eFCEd5oE0H49OiUrBHfYm6gLM9IkjEiRTuMtjl8MCHd0UL1melYrLPOuUWc+gVMAOWWUiqQvNm/tqn123b45QlA/swIjrmZMw= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1565037750; h=Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:Message-ID:References:Sender:Subject:To:ARC-Authentication-Results; bh=ioK1gZ4Wp1UGlMVD5qYfu377/uoClYGMYJCEBUrknho=; b=UcMhFto8hoLLld/EX+DiGTb7BMeSd5H+Mqd36ZxPWgVj6HjXCYMhIUkXdAmmcDaUszHbIyKRGxM7T62KpzYqqKI9IyZlj9K5ZRA48oSCzvORY+wbsCt65cA7ybzCpLAO7Aumf+pFGQEOx9xIw76j/K02eCLDPWGplxCj7HqSHCM= ARC-Authentication-Results: i=1; mx.zoho.com; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1565037750840559.1598926020024; Mon, 5 Aug 2019 13:42:30 -0700 (PDT) Received: from localhost ([::1]:56906 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hujoL-0000DK-F8 for importer@patchew.org; Mon, 05 Aug 2019 16:42:29 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:58008) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1huhbg-00018o-PO for qemu-devel@nongnu.org; Mon, 05 Aug 2019 14:21:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1huhbf-0008S1-Qy for qemu-devel@nongnu.org; Mon, 05 Aug 2019 14:21:16 -0400 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:37690) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1huhbf-0008Qf-Jr for qemu-devel@nongnu.org; Mon, 05 Aug 2019 14:21:15 -0400 Received: from pps.filterd (m0098404.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x75I3QY2082677 for ; Mon, 5 Aug 2019 14:21:13 -0400 Received: from e06smtp01.uk.ibm.com (e06smtp01.uk.ibm.com [195.75.94.97]) by mx0a-001b2d01.pphosted.com with ESMTP id 2u6qwyca40-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Mon, 05 Aug 2019 14:21:12 -0400 Received: from localhost by e06smtp01.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Mon, 5 Aug 2019 19:21:10 +0100 Received: from b06cxnps3074.portsmouth.uk.ibm.com (9.149.109.194) by e06smtp01.uk.ibm.com (192.168.101.131) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; (version=TLSv1/SSLv3 cipher=AES256-GCM-SHA384 bits=256/256) Mon, 5 Aug 2019 19:21:09 +0100 Received: from d06av22.portsmouth.uk.ibm.com (d06av22.portsmouth.uk.ibm.com [9.149.105.58]) by b06cxnps3074.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id x75IL8ca15597794 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 5 Aug 2019 18:21:08 GMT Received: from d06av22.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 4025F4C04E; Mon, 5 Aug 2019 18:21:08 +0000 (GMT) Received: from d06av22.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 26FE74C050; Mon, 5 Aug 2019 18:21:07 +0000 (GMT) Received: from localhost.localdomain.com (unknown [9.85.74.191]) by d06av22.portsmouth.uk.ibm.com (Postfix) with ESMTP; Mon, 5 Aug 2019 18:21:06 +0000 (GMT) From: Balamuruhan S To: qemu-devel@nongnu.org Date: Mon, 5 Aug 2019 23:50:31 +0530 X-Mailer: git-send-email 2.14.5 In-Reply-To: <20190805182033.27578-1-bala24@linux.ibm.com> References: <20190805182033.27578-1-bala24@linux.ibm.com> X-TM-AS-GCONF: 00 x-cbid: 19080518-4275-0000-0000-00000354B51A X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 19080518-4276-0000-0000-00003865AF47 Message-Id: <20190805182033.27578-2-bala24@linux.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:, , definitions=2019-08-05_09:, , signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=1 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=543 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1906280000 definitions=main-1908050188 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [generic] X-Received-From: 148.163.156.1 X-Mailman-Approved-At: Mon, 05 Aug 2019 16:41:38 -0400 Subject: [Qemu-devel] [PATCH 1/3] tests/acceptance/migration: fix post migration check X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Balamuruhan S , clg@kaod.org, david@gibson.dropbear.id.au Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" assert `query-migrate` in target doesn't give migration status and test errors even if migration succeeds. In target: {'execute': 'query-migrate'} {"return": {}} Signed-off-by: Balamuruhan S --- tests/acceptance/migration.py | 1 - 1 file changed, 1 deletion(-) diff --git a/tests/acceptance/migration.py b/tests/acceptance/migration.py index 6115cf6c24..66941db3b3 100644 --- a/tests/acceptance/migration.py +++ b/tests/acceptance/migration.py @@ -47,7 +47,6 @@ class Migration(Test): step=3D0.1, args=3D(source_vm,) ) - self.assertEqual(dest_vm.command('query-migrate')['status'], 'comp= leted') self.assertEqual(source_vm.command('query-migrate')['status'], 'co= mpleted') self.assertEqual(dest_vm.command('query-status')['status'], 'runni= ng') self.assertEqual(source_vm.command('query-status')['status'], 'pos= tmigrate') --=20 2.14.5 From nobody Mon Apr 29 00:19:47 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=linux.ibm.com ARC-Seal: i=1; a=rsa-sha256; t=1565037809; cv=none; d=zoho.com; s=zohoarc; b=KGn3Zb1N5Bpy6CZwAM92kH+eNXI+rtwbIL4za4L9f9tUaa/yOeKMSsz/H9s+P3KBTF1zCr/2GKDlnSpquYo6S8B0Rm6XkXl6Ub+cWQ+ulaoBnWorKXkGvjCPUXaDDyhgljfhfAvzcOju2LyuXSa4C3JCAvMJsBrhlBVDyzMNUV4= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1565037809; h=Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:Message-ID:References:Sender:Subject:To:ARC-Authentication-Results; bh=5tg5iL2XI3DZ/c2JK8/0PtM1QBOLZ5iTDR/Vhr4Vr5M=; b=E1+cj7ea8p4XZqTbEDvI9FaQoSmV88DRB98HpcNJPSfkgcy74ZobioU6ErLhoGrYKiTImXC3UeWR4fEQJZNNlMqmbFjf+ao8jXcBLSDYSAj29RHlOtLF7UEk44GkCXMhVSiqldyfiWtOOTPZdmxiZ+gPBIu+wiJUH3MxMZ2glNg= ARC-Authentication-Results: i=1; mx.zoho.com; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1565037809753525.3635687772235; Mon, 5 Aug 2019 13:43:29 -0700 (PDT) Received: from localhost ([::1]:56920 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hujpI-00021t-Si for importer@patchew.org; Mon, 05 Aug 2019 16:43:28 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:58045) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1huhbp-00019E-Mi for qemu-devel@nongnu.org; Mon, 05 Aug 2019 14:21:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1huhbn-0008U9-S8 for qemu-devel@nongnu.org; Mon, 05 Aug 2019 14:21:25 -0400 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:53136) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1huhbm-0008Ti-Fa for qemu-devel@nongnu.org; Mon, 05 Aug 2019 14:21:23 -0400 Received: from pps.filterd (m0098410.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x75I39Sm054588 for ; Mon, 5 Aug 2019 14:21:20 -0400 Received: from e06smtp01.uk.ibm.com (e06smtp01.uk.ibm.com [195.75.94.97]) by mx0a-001b2d01.pphosted.com with ESMTP id 2u6prt0fs9-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Mon, 05 Aug 2019 14:21:20 -0400 Received: from localhost by e06smtp01.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Mon, 5 Aug 2019 19:21:18 +0100 Received: from b06avi18878370.portsmouth.uk.ibm.com (9.149.26.194) by e06smtp01.uk.ibm.com (192.168.101.131) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; (version=TLSv1/SSLv3 cipher=AES256-GCM-SHA384 bits=256/256) Mon, 5 Aug 2019 19:21:14 +0100 Received: from d06av22.portsmouth.uk.ibm.com (d06av22.portsmouth.uk.ibm.com [9.149.105.58]) by b06avi18878370.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id x75ILEWU43712834 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 5 Aug 2019 18:21:14 GMT Received: from d06av22.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id F14614C050; Mon, 5 Aug 2019 18:21:13 +0000 (GMT) Received: from d06av22.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id D95E34C05A; Mon, 5 Aug 2019 18:21:12 +0000 (GMT) Received: from localhost.localdomain.com (unknown [9.85.74.191]) by d06av22.portsmouth.uk.ibm.com (Postfix) with ESMTP; Mon, 5 Aug 2019 18:21:12 +0000 (GMT) From: Balamuruhan S To: qemu-devel@nongnu.org Date: Mon, 5 Aug 2019 23:50:32 +0530 X-Mailer: git-send-email 2.14.5 In-Reply-To: <20190805182033.27578-1-bala24@linux.ibm.com> References: <20190805182033.27578-1-bala24@linux.ibm.com> X-TM-AS-GCONF: 00 x-cbid: 19080518-4275-0000-0000-00000354B51C X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 19080518-4276-0000-0000-00003865AF49 Message-Id: <20190805182033.27578-3-bala24@linux.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:, , definitions=2019-08-05_09:, , signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=1 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=713 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1906280000 definitions=main-1908050188 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [generic] X-Received-From: 148.163.156.1 X-Mailman-Approved-At: Mon, 05 Aug 2019 16:41:38 -0400 Subject: [Qemu-devel] [PATCH 2/3] tests/acceptance/avocado_qemu: add method to get supported machine types X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Balamuruhan S , clg@kaod.org, david@gibson.dropbear.id.au Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" add `get_machine_types()` to return list of supported machine types by the qemu binary. Signed-off-by: Balamuruhan S --- tests/acceptance/avocado_qemu/__init__.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/acceptance/avocado_qemu/__init__.py b/tests/acceptance/a= vocado_qemu/__init__.py index aee5d820ed..df18561e97 100644 --- a/tests/acceptance/avocado_qemu/__init__.py +++ b/tests/acceptance/avocado_qemu/__init__.py @@ -82,6 +82,12 @@ class Test(avocado.Test): self._vms[name] =3D self._new_vm(*args) return self._vms[name] =20 + def get_machine_types(self): + cmd =3D "%s -machine ?" % self.qemu_bin + output =3D avocado.utils.process.getoutput(cmd).split("\n") + output.remove("Supported machines are:") + return [each.split()[0] for each in output] + def tearDown(self): for vm in self._vms.values(): vm.shutdown() --=20 2.14.5 From nobody Mon Apr 29 00:19:47 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=linux.ibm.com ARC-Seal: i=1; a=rsa-sha256; t=1565037752; cv=none; d=zoho.com; s=zohoarc; b=l4DFt9euU9u4L0ghduk0UH3dGb8dA3Sm+L0CIBJ1IgYGwBrQKu0VtvJkgAcvQd4rVrWbNBnDyIfaiu3m9fMh8rzlgJg2CKKZUDInpJCeNUH3iGgwceipMDBBsbkE2VYE96MlrMLyoUqzSTzOeG9yi2tQO9LGf/YmFMXDHoMMAYk= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1565037752; h=Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:Message-ID:References:Sender:Subject:To:ARC-Authentication-Results; bh=b4v46p2eIcBVvYUyQkmDEAIA/Y2b/JpJBfgcKf5dBEY=; b=fLgplUOIbt+P8lnqBkZoEAiddZPwIvRrEhfioPYtloRD8E9ci//6WRdLFbNu9pDq91Zrgpy14AjsFVb2qyvWF8JSbUOdtQHNy7zk+puCQmk1Sv3eaoU6NLwYZs3uELkbC7H5D0sU0fNJumlKO1ZeDjdz4pCdR2If2RsYO5Cglu8= ARC-Authentication-Results: i=1; mx.zoho.com; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1565037752671800.9080176315372; Mon, 5 Aug 2019 13:42:32 -0700 (PDT) Received: from localhost ([::1]:56909 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hujoN-0000Iv-Od for importer@patchew.org; Mon, 05 Aug 2019 16:42:31 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:58057) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1huhbr-00019Z-K1 for qemu-devel@nongnu.org; Mon, 05 Aug 2019 14:21:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1huhbq-0008Uj-0s for qemu-devel@nongnu.org; Mon, 05 Aug 2019 14:21:27 -0400 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:61722) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1huhbp-0008UJ-Le for qemu-devel@nongnu.org; Mon, 05 Aug 2019 14:21:25 -0400 Received: from pps.filterd (m0098399.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x75I3919039077 for ; Mon, 5 Aug 2019 14:21:24 -0400 Received: from e06smtp07.uk.ibm.com (e06smtp07.uk.ibm.com [195.75.94.103]) by mx0a-001b2d01.pphosted.com with ESMTP id 2u6rkf2mtm-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Mon, 05 Aug 2019 14:21:23 -0400 Received: from localhost by e06smtp07.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Mon, 5 Aug 2019 19:21:21 +0100 Received: from b06cxnps3075.portsmouth.uk.ibm.com (9.149.109.195) by e06smtp07.uk.ibm.com (192.168.101.137) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; (version=TLSv1/SSLv3 cipher=AES256-GCM-SHA384 bits=256/256) Mon, 5 Aug 2019 19:21:18 +0100 Received: from d06av22.portsmouth.uk.ibm.com (d06av22.portsmouth.uk.ibm.com [9.149.105.58]) by b06cxnps3075.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id x75ILHuv60620842 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 5 Aug 2019 18:21:17 GMT Received: from d06av22.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id CD5234C04E; Mon, 5 Aug 2019 18:21:17 +0000 (GMT) Received: from d06av22.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id BF7164C044; Mon, 5 Aug 2019 18:21:16 +0000 (GMT) Received: from localhost.localdomain.com (unknown [9.85.74.191]) by d06av22.portsmouth.uk.ibm.com (Postfix) with ESMTP; Mon, 5 Aug 2019 18:21:16 +0000 (GMT) From: Balamuruhan S To: qemu-devel@nongnu.org Date: Mon, 5 Aug 2019 23:50:33 +0530 X-Mailer: git-send-email 2.14.5 In-Reply-To: <20190805182033.27578-1-bala24@linux.ibm.com> References: <20190805182033.27578-1-bala24@linux.ibm.com> X-TM-AS-GCONF: 00 x-cbid: 19080518-0028-0000-0000-0000038BEB8E X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 19080518-0029-0000-0000-0000244C49F9 Message-Id: <20190805182033.27578-4-bala24@linux.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:, , definitions=2019-08-05_09:, , signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=4 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=908 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1906280000 definitions=main-1908050188 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [generic] X-Received-From: 148.163.156.1 X-Mailman-Approved-At: Mon, 05 Aug 2019 16:41:38 -0400 Subject: [Qemu-devel] [PATCH 3/3] tests/acceptance/migration: test to migrate will all machine types X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Balamuruhan S , clg@kaod.org, david@gibson.dropbear.id.au Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" add migration test to query machine types supported by qemu binary and migrate vm will all supported type. Signed-off-by: Balamuruhan S --- tests/acceptance/migration.py | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/tests/acceptance/migration.py b/tests/acceptance/migration.py index 66941db3b3..a598b54718 100644 --- a/tests/acceptance/migration.py +++ b/tests/acceptance/migration.py @@ -50,3 +50,29 @@ class Migration(Test): self.assertEqual(source_vm.command('query-migrate')['status'], 'co= mpleted') self.assertEqual(dest_vm.command('query-status')['status'], 'runni= ng') self.assertEqual(source_vm.command('query-status')['status'], 'pos= tmigrate') + + + def test_migration_with_machine_types(self): + migration_port =3D self._get_free_port() + for machine in self.get_machine_types(): + if 'pseries' in machine: + print("migrating with machine type - {}".format(machine)) + source_vm =3D self.get_vm('-M', '{},cap-htm=3Doff'.format(= machine)) + dest_uri =3D 'tcp:localhost:%u' % migration_port + dest_vm =3D self.get_vm('-M', '{},cap-htm=3Doff'.format(ma= chine), + '-incoming', dest_uri) + dest_vm.launch() + source_vm.launch() + source_vm.qmp('migrate', uri=3Ddest_uri) + wait.wait_for( + self.migration_finished, + timeout=3Dself.timeout, + step=3D0.1, + args=3D(source_vm,) + ) + self.assertEqual(source_vm.command('query-migrate')['statu= s'], + 'completed') + self.assertEqual(dest_vm.command('query-status')['status'], + 'running') + self.assertEqual(source_vm.command('query-status')['status= '], + 'postmigrate') --=20 2.14.5