Received: from eggs.gnu.org ([2001:4830:134:3::10]:40271) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wnig4-0003j3-7M for qemu-devel@nongnu.org; Fri, 23 May 2014 02:10:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Wnify-0002hh-2d for qemu-devel@nongnu.org; Fri, 23 May 2014 02:10:00 -0400 Received: from mx1.redhat.com ([209.132.183.28]:17607) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wnifx-0002gN-Qx for qemu-devel@nongnu.org; Fri, 23 May 2014 02:09:54 -0400 Date: Fri, 23 May 2014 14:10:01 +0800 From: Fam Zheng Message-ID: <20140523061001.GG1668@T430.nay.redhat.com> References: <1400794231-27403-1-git-send-email-mreitz@redhat.com> <1400794231-27403-4-git-send-email-mreitz@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1400794231-27403-4-git-send-email-mreitz@redhat.com> Subject: Re: [Qemu-devel] [PATCH v3 3/7] iotests: Add default common.env List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Max Reitz Cc: Kevin Wolf , Peter Maydell , qemu-devel@nongnu.org, Stefan Hajnoczi , Markus Armbruster On Thu, 05/22 23:30, Max Reitz wrote: > Add a default common.env in case the one supposed to be emitted by > configure cannot be found. > > Signed-off-by: Max Reitz Now we can run both from in-tree build and out-of-tree build without this, which is already very good, but we need this patch to run from the source tree with an out-of-tree build. I'm not sure we really need that, though. common.env.default worries me a bit with the impression that we are guessing the configure's output when we don't know the right place to look. Not a big issue with $PYTHON itself, but it's dubious whether this file is right in its place. Let's wait for others' input. Thanks, Fam > --- > tests/qemu-iotests/common.env.default | 6 ++++++ > 1 file changed, 6 insertions(+) > create mode 100644 tests/qemu-iotests/common.env.default > > diff --git a/tests/qemu-iotests/common.env.default b/tests/qemu-iotests/common.env.default > new file mode 100644 > index 0000000..406e1f1 > --- /dev/null > +++ b/tests/qemu-iotests/common.env.default > @@ -0,0 +1,6 @@ > +if command -v python2 > /dev/null > +then > + export PYTHON='python2' > +else > + export PYTHON='python' > +fi > -- > 1.9.3 > >