Received: from eggs.gnu.org ([2001:4830:134:3::10]:42290) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XtASW-0006pg-9g for qemu-devel@nongnu.org; Tue, 25 Nov 2014 02:22:54 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XtASQ-0006cX-Rk for qemu-devel@nongnu.org; Tue, 25 Nov 2014 02:22:48 -0500 Received: from mx1.redhat.com ([209.132.183.28]:50304) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XtASQ-0006cT-Kl for qemu-devel@nongnu.org; Tue, 25 Nov 2014 02:22:42 -0500 From: Markus Armbruster References: <1414478736-30064-1-git-send-email-famz@redhat.com> <1414478736-30064-2-git-send-email-famz@redhat.com> Date: Tue, 25 Nov 2014 08:22:38 +0100 In-Reply-To: <1414478736-30064-2-git-send-email-famz@redhat.com> (Fam Zheng's message of "Tue, 28 Oct 2014 14:45:35 +0800") Message-ID: <871torsq0x.fsf@blackfin.pond.sub.org> MIME-Version: 1.0 Content-Type: text/plain Subject: Re: [Qemu-devel] [PATCH 1/2] qemu-iotests: Speed up make check-block List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Fam Zheng Cc: Kevin Wolf , Peter Maydell , qemu-devel@nongnu.org, Stefan Hajnoczi , Paolo Bonzini , Andreas =?utf-8?Q?F=C3=A4rber?= Fam Zheng writes: > Using /tmp (usually mounted as tmpfs) and cache=writeback, the quick > group can be quicker. > > On my laptop (Lenovo T430s with Fedora 20), this reduces the time from > 50s to 30s. > > Signed-off-by: Fam Zheng > --- > tests/qemu-iotests-quick.sh | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/tests/qemu-iotests-quick.sh b/tests/qemu-iotests-quick.sh > index 12af731..0b54dbf 100755 > --- a/tests/qemu-iotests-quick.sh > +++ b/tests/qemu-iotests-quick.sh > @@ -3,6 +3,6 @@ > cd tests/qemu-iotests > > ret=0 > -./check -T -qcow2 -g quick || ret=1 > +TEST_DIR=/tmp/qemu-iotests-quick-$$ ./check -T -qcow2 -g quick -c > writeback || ret=1 > > exit $ret Should we let users specify another directory in the environment? Like this: : ${TEST_DIR=/tmp/qemu-iotests-quick-$$} ret=0 ./check -T -qcow2 -g quick || ret=1