Received: from eggs.gnu.org ([2001:4830:134:3::10]:49386) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YuMW4-00059a-LQ for qemu-devel@nongnu.org; Mon, 18 May 2015 10:59:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YuMVz-0003aQ-Ma for qemu-devel@nongnu.org; Mon, 18 May 2015 10:59:40 -0400 Date: Mon, 18 May 2015 16:59:31 +0200 From: Kevin Wolf Message-ID: <20150518145931.GH5999@noname.str.redhat.com> References: <1431913152-28934-1-git-send-email-famz@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1431913152-28934-1-git-send-email-famz@redhat.com> Subject: Re: [Qemu-devel] [PATCH v2] qemu-iotests: Make debugging python tests easier List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Fam Zheng Cc: jsnow@redhat.com, qemu-devel@nongnu.org, qemu-block@nongnu.org, mreitz@redhat.com Am 18.05.2015 um 03:39 hat Fam Zheng geschrieben: > Adding "-d" option. The output goes to "tee" so it appears in your > console. Also, raise the verbosity of unnitest runner. > > When testing a topic branch, it's possible that a bug introduced by a > code change makes the python test case hang, with debug output, it is > much easier to locate the problem. > > This can also be helpful if you want to watch the progress of a python > test, it offers you a way to sense the speed of each test case method > you're writing. > > Note: because there is no easy way to get *both* the verbose output and > the output expected by ./check comparison, the case would always fail > with an "output mismatch". The sole purpose of using this option is > giving developers a quick way to debug when things go wrong. > > Signed-off-by: Fam Zheng Thanks, applied to the block branch. Next step: Log all qemu-img/qemu-io output and QMP traffic when -d is specified. :-) Kevin