Received: from eggs.gnu.org ([2001:4830:134:3::10]:41480) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WhHyv-0002X9-QO for qemu-devel@nongnu.org; Mon, 05 May 2014 08:27:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WhHyo-0006uC-V1 for qemu-devel@nongnu.org; Mon, 05 May 2014 08:26:53 -0400 Received: from mail-we0-x233.google.com ([2a00:1450:400c:c03::233]:47077) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WhHyo-0006u1-N8 for qemu-devel@nongnu.org; Mon, 05 May 2014 08:26:46 -0400 Received: by mail-we0-f179.google.com with SMTP id q59so5111464wes.10 for ; Mon, 05 May 2014 05:26:45 -0700 (PDT) Date: Mon, 5 May 2014 14:26:42 +0200 From: Stefan Hajnoczi Message-ID: <20140505122642.GG16173@stefanha-thinkpad.redhat.com> References: <1399128428-25546-1-git-send-email-mreitz@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1399128428-25546-1-git-send-email-mreitz@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 , qemu-devel@nongnu.org, Stefan Hajnoczi 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. > @@ -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 ``.