Received: from eggs.gnu.org ([2001:4830:134:3::10]:48913) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a1KxW-0002Lp-Bu for qemu-devel@nongnu.org; Tue, 24 Nov 2015 16:17:07 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a1KxR-0008QK-6t for qemu-devel@nongnu.org; Tue, 24 Nov 2015 16:17:06 -0500 Received: from e06smtp10.uk.ibm.com ([195.75.94.106]:56099) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a1KxQ-0008Q1-Tm for qemu-devel@nongnu.org; Tue, 24 Nov 2015 16:17:01 -0500 Received: from localhost by e06smtp10.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Tue, 24 Nov 2015 21:16:58 -0000 Received: from b06cxnps3074.portsmouth.uk.ibm.com (d06relay09.portsmouth.uk.ibm.com [9.149.109.194]) by d06dlp01.portsmouth.uk.ibm.com (Postfix) with ESMTP id DDB6D17D8042 for ; Tue, 24 Nov 2015 21:17:20 +0000 (GMT) Received: from d06av04.portsmouth.uk.ibm.com (d06av04.portsmouth.uk.ibm.com [9.149.37.216]) by b06cxnps3074.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id tAOLGt2u11010416 for ; Tue, 24 Nov 2015 21:16:55 GMT Received: from d06av04.portsmouth.uk.ibm.com (localhost [127.0.0.1]) by d06av04.portsmouth.uk.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id tAOLGtoM020613 for ; Tue, 24 Nov 2015 14:16:55 -0700 From: Sascha Silbe In-Reply-To: <564F493C.3030501@redhat.com> References: <1446604018-14025-1-git-send-email-tubo@linux.vnet.ibm.com> <1446604018-14025-3-git-send-email-tubo@linux.vnet.ibm.com> <564CACB1.5020806@redhat.com> <564D7A04.7090402@linux.vnet.ibm.com> <564F493C.3030501@redhat.com> Date: Tue, 24 Nov 2015 22:17:03 +0100 Message-ID: <87d1uzdrn4.fsf@oc4731375738.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH v2 2/4] qemu-iotests: s390x: fix test 051 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Max Reitz , tu bo , qemu-devel@nongnu.org Cc: kwolf@redhat.com, armbru@redhat.com, mimu@linux.vnet.ibm.com Dear Max, Max Reitz writes: > OK, so it is expected for s390x; however, this is strictly speaking not > the output file for s390x but for any platform but PC. That's why I'd > rather not have it in this =E2=80=9Cgeneric=E2=80=9D reference output. > > This patch already assumes that the iotests only support s390 and PC > (hunk @@ -251,28 +273,37 @@ in 051 adds a case statement which knows > only these two cases). Therefore, I would be fine with renaming this > reference output file to "051.s390.out" with a copy > "051.s390-ccw-virtio.out" and just removing the generic "051.out". Then > you can keep the warnings in. > > (Or you filter the warnings out and keep it as "051.out".) This PC/s390x-only hunk looks like an oversight to me. We should make one of the options the default. I'd prefer defaulting to virtio (see below), but since the test previously hard-coded IDE that would be fine, too. For the other cases, IIRC it's really PC that's the odd one out, that's why I suggested adding a PC-specific output file and patching the generic output file to look like the output on most other architectures. But I'm fine with anything that gets the job done on both PC and s390x today. I'll have a closer look again once things settle down a bit. While the support for one output file per architecture is a very useful generic solution, we should make use of it only sparingly. The git log already shows that people forget to update test output files. This will get worse with multiple output files. One of the things I'm considering is splitting off the IDE tests to a separate test case and skipping it entirely on machines that do not support IDE. Another is using virtio-blk on all architectures whenever the test case doesn't care about the device type. (I doubt the tests currently work on architectures that don't support virtio, but will of course check this). Sascha --=20 Softwareentwicklung Sascha Silbe, Niederhofenstra=C3=9Fe 5/1, 71229 Leonberg https://se-silbe.de/ USt-IdNr. DE281696641