From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:38674) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fGSp2-0002Do-MF for qemu-devel@nongnu.org; Wed, 09 May 2018 13:24:13 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fGSp1-0001vp-Q8 for qemu-devel@nongnu.org; Wed, 09 May 2018 13:24:12 -0400 References: <20180509154949.8206-1-mreitz@redhat.com> <20180509154949.8206-3-mreitz@redhat.com> From: Eric Blake Message-ID: Date: Wed, 9 May 2018 12:24:04 -0500 MIME-Version: 1.0 In-Reply-To: <20180509154949.8206-3-mreitz@redhat.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 2/2] iotests: Add test for rebasing with relative paths List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Max Reitz , qemu-block@nongnu.org Cc: Kevin Wolf , qemu-stable@nongnu.org, qemu-devel@nongnu.org, Jeff Cody On 05/09/2018 10:49 AM, Max Reitz wrote: > Signed-off-by: Max Reitz > --- > tests/qemu-iotests/024 | 82 ++++++++++++++++++++++++++++++++++++++++++++-- > tests/qemu-iotests/024.out | 30 +++++++++++++++++ > 2 files changed, 109 insertions(+), 3 deletions(-) > > diff --git a/tests/qemu-iotests/024 b/tests/qemu-iotests/024 > index e0d77ce2f5..4071ed6093 100755 > --- a/tests/qemu-iotests/024 > +++ b/tests/qemu-iotests/024 > @@ -29,9 +29,14 @@ status=1 # failure is the default! > > _cleanup() > { > - _cleanup_test_img > - rm -f "$TEST_DIR/t.$IMGFMT.base_old" > - rm -f "$TEST_DIR/t.$IMGFMT.base_new" > + _cleanup_test_img > + rm -f "$TEST_DIR/t.$IMGFMT.base_old" > + rm -f "$TEST_DIR/t.$IMGFMT.base_new" > + > + rm -f "$TEST_DIR/subdir/t.$IMGFMT" > + rm -f "$TEST_DIR/subdir/t.$IMGFMT.base_old" > + rm -f "$TEST_DIR/subdir/t.$IMGFMT.base_new" > + rmdir "$TEST_DIR/subdir" 2> /dev/null Any easier to just 'rm -rf "$TEST_DIR/subdir"' instead of calling out individual files? And was Jeff ever going to finish the iotests cleanups that took care of cleanup globally by running tests in a per-test directory in preparation for running tests in parallel? Reviewed-by: Eric Blake -- Eric Blake, Principal Software Engineer Red Hat, Inc. +1-919-301-3266 Virtualization: qemu.org | libvirt.org