From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:54679) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WhcWu-0004Ey-EV for qemu-devel@nongnu.org; Tue, 06 May 2014 06:23:24 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WhcWp-00013B-Cb for qemu-devel@nongnu.org; Tue, 06 May 2014 06:23:20 -0400 Received: from mx1.redhat.com ([209.132.183.28]:29415) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WhcWp-00012u-50 for qemu-devel@nongnu.org; Tue, 06 May 2014 06:23:15 -0400 Date: Tue, 6 May 2014 12:23:11 +0200 From: Stefan Hajnoczi Message-ID: <20140506102311.GA15810@stefanha-thinkpad.redhat.com> References: <1399128428-25546-1-git-send-email-mreitz@redhat.com> <20140505122642.GG16173@stefanha-thinkpad.redhat.com> <5367BB82.3050301@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5367BB82.3050301@redhat.com> Subject: Re: [Qemu-devel] [PATCH] iotests: Use configured python List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Max Reitz Cc: Kevin Wolf , Stefan Hajnoczi , qemu-devel@nongnu.org On Mon, May 05, 2014 at 06:25:38PM +0200, Max Reitz wrote: > On 05.05.2014 14:26, Stefan Hajnoczi wrote: > >On Sat, May 03, 2014 at 04:47:08PM +0200, Max Reitz wrote: > >>@@ -56,22 +57,22 @@ for IMGOPTS in "compat=0.10" "compat=1.1"; do > >> echo === Create image with unknown header extension === > >> echo > >> _make_test_img 64M > >>- ./qcow2.py "$TEST_IMG" add-header-ext 0x12345678 "This is a test header extension" > >>- ./qcow2.py "$TEST_IMG" dump-header > >>+ $PYTHON qcow2.py "$TEST_IMG" add-header-ext 0x12345678 "This is a test header extension" > >>+ $PYTHON qcow2.py "$TEST_IMG" dump-header > >Please use "$PYTHON" to humor the people who like to put spaces in their > >path names. > > Following on Peter's explanation, me using ./configure > --python=python2 results in PYTHON='python2 -B', which probably > won't work so well with quotes around it. You have a point, let's take the patch as-is. > >>@@ -215,9 +222,16 @@ do > >> start=`_wallclock` > >> $timestamp && echo -n " ["`date "+%T"`"]" > >>- [ ! -x $seq ] && chmod u+x $seq # ensure we can run it > >>+ > >>+ if [ "$(head -n 1 $seq)" == "#!/usr/bin/env python" ]; then > >>+ run_command="$PYTHON $seq" > >The code generally uses the older `` notation instead of $(). Please > >use ``. > > If I'd send a v2 with ``, Eric would probably want me to send a v3 > with $(). ;-) > > I personally don't really care what to use, but so far nobody has > picked on me for using $(), whereas Eric once criticized my use of > `` (which I had taken over from other tests). Personally I'm a $() man. Just pointed it out for consistency but it seems nobody really likes `` anyway :-). Thanks, applied to my block tree: https://github.com/stefanha/qemu/commits/block Stefan