Received: from eggs.gnu.org ([2001:4830:134:3::10]:40520) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gCoho-0002tF-Fy for qemu-devel@nongnu.org; Wed, 17 Oct 2018 12:29:57 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gCohl-0000YU-9i for qemu-devel@nongnu.org; Wed, 17 Oct 2018 12:29:56 -0400 Received: from mx1.redhat.com ([209.132.183.28]:59970) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gCohk-0000V6-W5 for qemu-devel@nongnu.org; Wed, 17 Oct 2018 12:29:53 -0400 Date: Wed, 17 Oct 2018 13:29:44 -0300 From: Eduardo Habkost Message-ID: <20181017162944.GF31060@habkost.net> References: <20181016232201.16829-1-crosa@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Subject: Re: [Qemu-devel] [PATCH] Acceptance tests: host arch to target arch name mapping List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell Cc: Cleber Rosa , QEMU Developers , Philippe =?iso-8859-1?Q?Mathieu-Daud=E9?= , Wainer dos Santos Moschetta , Caio Carrara On Wed, Oct 17, 2018 at 01:34:41PM +0100, Peter Maydell wrote: > On 17 October 2018 at 00:22, Cleber Rosa wrote: > > The host arch name is not always the target arch name, so it's > > necessary to have a mapping. > > > > The configure scripts contains what is the authoritative and failproof > > mapping, but, reusing it is not straightforward, so it's replicated in > > the acceptance tests supporting code. > > So, why does the test code need to care? It's not clear > from the patch... My expectation would be that you'd > just test all the testable target architectures, > regardless of what the host architecture is. I tend to agree. Maybe the right solution is to get rid of the os.uname(). I think the default should be testing all QEMU binaries that were built, and the host architecture shouldn't matter. That said, I think the dictionary is a nice temporary workaround until we fix that. -- Eduardo