Received: from eggs.gnu.org ([2001:4830:134:3::10]:49926) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bKRiT-0006YZ-2J for qemu-devel@nongnu.org; Tue, 05 Jul 2016 10:52:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bKRiP-0000Vh-VM for qemu-devel@nongnu.org; Tue, 05 Jul 2016 10:52:49 -0400 Date: Tue, 5 Jul 2016 16:52:34 +0200 From: Kevin Wolf Message-ID: <20160705145234.GD5882@noname.redhat.com> References: <1467638208-26198-1-git-send-email-den@openvz.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1467638208-26198-1-git-send-email-den@openvz.org> Subject: Re: [Qemu-devel] [PATCH 1/1] qemu-img: fix failed autotests List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Denis V. Lunev" Cc: qemu-block@nongnu.org, qemu-devel@nongnu.org, Eric Blake , Max Reitz , stefanha@redhat.com Am 04.07.2016 um 15:16 hat Denis V. Lunev geschrieben: > There are 9 iotests failed on Ubuntu 15.10 at the moment. > The problem is that options parsing in qemu-img is broken by the > following commit: > commit 10985131e337a0c52c5bd1e191fd7867a6ff8d02 > Author: Denis V. Lunev > Date: Fri Jun 17 17:44:13 2016 +0300 > qemu-img: move common options parsing before commands processing > > This strange command line reports error > ./qemu-img create -f qcow2 TEST_DIR/t.qcow2 -- 1024 > qemu-img: Invalid image size specified! > while original code parses it successfully. > > The problem is that getopt_long state should be reset. This could be done > using this assignment according to the manual: > optind = 0 > > Signed-off-by: Denis V. Lunev > CC: Eric Blake > CC: Kevin Wolf > CC: Max Reitz Thanks, applied to the block branch. Stefan, don't you run qemu-iotests any more before sending pull requests? Kevin