From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:53055) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YuKtd-00037W-Oy for qemu-devel@nongnu.org; Mon, 18 May 2015 09:15:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YuKtZ-0003XY-M5 for qemu-devel@nongnu.org; Mon, 18 May 2015 09:15:53 -0400 Date: Mon, 18 May 2015 14:15:42 +0100 From: Stefan Hajnoczi Message-ID: <20150518131542.GD24319@stefanha-thinkpad.redhat.com> References: <1431913152-28934-1-git-send-email-famz@redhat.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="tEFtbjk+mNEviIIX" Content-Disposition: inline In-Reply-To: <1431913152-28934-1-git-send-email-famz@redhat.com> Subject: Re: [Qemu-devel] [Qemu-block] [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: qemu-devel@nongnu.org, qemu-block@nongnu.org, mreitz@redhat.com --tEFtbjk+mNEviIIX Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, May 18, 2015 at 09:39:12AM +0800, Fam Zheng wrote: > Adding "-d" option. The output goes to "tee" so it appears in your > console. Also, raise the verbosity of unnitest runner. >=20 > 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. >=20 > 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. >=20 > 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. >=20 > Signed-off-by: Fam Zheng > --- > tests/qemu-iotests/check | 12 +++++++++--- > tests/qemu-iotests/common | 6 ++++++ > tests/qemu-iotests/iotests.py | 14 +++++++++++--- > 3 files changed, 26 insertions(+), 6 deletions(-) Reviewed-by: Stefan Hajnoczi --tEFtbjk+mNEviIIX Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQEcBAEBAgAGBQJVWeX+AAoJEJykq7OBq3PIFS4IAJgJJyHLDObUQgQzX3PnUHXX dVI3TwxXbXkmzdp2Oxe6uT6AsVI2tfWgBNp8iMjor47gbrKPznkvw5MpAmM+fo/s 6gTzgBIOXccwzE9Gi/LEWWFTxvaliUiSpGQGxWuFZIeT+eBVXBO+NV0R8XkN0nRq J8TyKUF9psIEw3CYoLFnZq6Eot4HQEk8dG0D9H1VRAjJhw1XyyqJVSQLfr7gdMPi w3/b/s79sT4O53pfjq+3S0+TFN7y/I1/IpZQ1e4+PxDSQdoWF1GKjlRWwXP15JUQ 5YBxRHOOjhR04wx9KWFeFX23rCLUwZjt39xSrRdM5HYBYZaz0WLSketK41tnzHI= =rNxC -----END PGP SIGNATURE----- --tEFtbjk+mNEviIIX--