Received: from eggs.gnu.org ([2001:4830:134:3::10]:38908) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1asneN-0003Mi-HL for qemu-devel@nongnu.org; Wed, 20 Apr 2016 04:38:23 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1asneJ-0000OG-MC for qemu-devel@nongnu.org; Wed, 20 Apr 2016 04:38:19 -0400 Received: from e06smtp13.uk.ibm.com ([195.75.94.109]:48314) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1asneJ-0000Nt-Bg for qemu-devel@nongnu.org; Wed, 20 Apr 2016 04:38:15 -0400 Received: from localhost by e06smtp13.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Wed, 20 Apr 2016 09:38:12 +0100 From: Sascha Silbe In-Reply-To: <87oa94srae.fsf@dusky.pond.sub.org> References: <1460633543-7366-1-git-send-email-silbe@linux.vnet.ibm.com> <57101588.3080204@redhat.com> <87fuuh7ppo.fsf@oc4731375738.ibm.com> <571681D0.5010707@redhat.com> <87oa94srae.fsf@dusky.pond.sub.org> Date: Wed, 20 Apr 2016 10:37:52 +0200 Message-ID: <87oa9465gf.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 for-2.6?] qemu-iotests: iotests: fail hard if not run via "check" List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Markus Armbruster , Max Reitz Cc: Kevin Wolf , qemu-devel@nongnu.org, qemu-block@nongnu.org Dear Markus, Markus Armbruster writes: > 'Please run this test via the "check" script' isn't an error message, > it's advice. Advice is appreciated, but an error message must come > first. I reiterate my proposal to use something like > > : TEST_DIR and QEMU_DEFAULT_MACHINE must be set in envi= ronment > The easiest way to do that is running the test via the check script. But I don't know how the environment (again, broader sense than just environment variables) must be set up; that's part of the problem. I know that at least the TEST_DIR and QEMU_DEFAULT_MACHINE environment variables must be set, but listing those in the error message gives an impression that it's all the user needs to do. Bad advice is worse than no advice. We could write something like "The TEST_DIR and QEMU_DEFAULT_MACHINE environment variables must be set and there may be other things that the tests may expect to have been set up. See what the 'check' script does if you want to invoke the tests some other way than running 'check'.", but I don't really see the additional value to the user. Sascha --=20 Softwareentwicklung Sascha Silbe, Niederhofenstra=C3=9Fe 5/1, 71229 Leonberg https://se-silbe.de/ USt-IdNr. DE281696641