From nobody Mon Feb 9 01:16:25 2026 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=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1567040908; cv=none; d=zoho.com; s=zohoarc; b=X0eaS+gisOnlc5sqFDVyuy6T249k04aeYnrN6rbA30YhJIUVJxK7huvL43c92kebIhi/XxYvVhPwiL5Izowu98OUzp1LH5Sd0pXM8Dy3UVnAoMs5dD5VOZk6bAJOAkZgX0XXuRZm7n6cpOs3TVTLKn+XRd9A2J20t/KmntELOoQ= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1567040908; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To:ARC-Authentication-Results; bh=BEMmFQKXoYp1q9nw9set9QoOOLg2uhUjQ8yj15kJyOc=; b=Hp2JFvvB+L0okfTNorNSQpB1O8RJtxQjeWaZko+TRDG8e9oZdzzFAKs/2aOvCu5m+OQ/LbeJhVIMcXM09jLixynldhUekvVT1JhTZ0Eie7KNwRo20TG92h/WVw1ghIiqJAjCvUF2Mk2qH5n6GTYd/3MFCyKvN+Ogo0/wjqORIV4= 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 1567040908110160.18228768103165; Wed, 28 Aug 2019 18:08:28 -0700 (PDT) Received: from localhost ([::1]:44178 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i38vL-00064o-1E for importer@patchew.org; Wed, 28 Aug 2019 21:08:27 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:43152) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i38rZ-0002kf-D2 for qemu-devel@nongnu.org; Wed, 28 Aug 2019 21:04:35 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1i38rS-0004oj-SM for qemu-devel@nongnu.org; Wed, 28 Aug 2019 21:04:29 -0400 Received: from mx1.redhat.com ([209.132.183.28]:40580) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1i38rL-0004kK-LM for qemu-devel@nongnu.org; Wed, 28 Aug 2019 21:04:21 -0400 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 04719307C820; Thu, 29 Aug 2019 01:04:18 +0000 (UTC) Received: from localhost.localdomain.com (ovpn-123-242.rdu2.redhat.com [10.10.123.242]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 8467560CC0; Thu, 29 Aug 2019 01:04:07 +0000 (UTC) From: Cleber Rosa To: Peter Maydell , qemu-devel@nongnu.org, Eduardo Habkost Date: Wed, 28 Aug 2019 21:03:36 -0400 Message-Id: <20190829010340.28873-2-crosa@redhat.com> In-Reply-To: <20190829010340.28873-1-crosa@redhat.com> References: <20190829010340.28873-1-crosa@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.40]); Thu, 29 Aug 2019 01:04:18 +0000 (UTC) Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.132.183.28 Subject: [Qemu-devel] [PULL 1/5] tests.acceptance.avocado_qemu: Add support for powerpc 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: Fam Zheng , =?UTF-8?q?Alex=20Benn=C3=A9e?= , Satheesh Rajendran , =?UTF-8?q?C=C3=A9dric=20Le=20Goater?= , Cleber Rosa , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , David Gibson Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" Content-Type: text/plain; charset="utf-8" From: Satheesh Rajendran Current acceptance test will not run properly in powerpc environment due qemu target is different from arch, this usually matches, except with bi-endian architectures like ppc64. uname would return `ppc64` or `ppc64le` based `big` or `little` endian but qemu `target` is always `ppc64`. Let's handle it. Reviewed-by: C=C3=A9dric Le Goater Signed-off-by: Satheesh Rajendran Message-Id: <20190819082820.14817-1-sathnaga@linux.vnet.ibm.com> Reviewed-by: David Gibson Signed-off-by: Cleber Rosa --- tests/acceptance/avocado_qemu/__init__.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/acceptance/avocado_qemu/__init__.py b/tests/acceptance/a= vocado_qemu/__init__.py index aee5d820ed..bd41e0443c 100644 --- a/tests/acceptance/avocado_qemu/__init__.py +++ b/tests/acceptance/avocado_qemu/__init__.py @@ -39,6 +39,9 @@ def pick_default_qemu_bin(arch=3DNone): """ if arch is None: arch =3D os.uname()[4] + # qemu binary path does not match arch for powerpc, handle it + if 'ppc64le' in arch: + arch =3D 'ppc64' qemu_bin_relative_path =3D os.path.join("%s-softmmu" % arch, "qemu-system-%s" % arch) if is_readable_executable_file(qemu_bin_relative_path): --=20 2.21.0