Return-Path: Received: from mx2.suse.de ([195.135.220.15]:58513 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753123AbbHaOwg (ORCPT ); Mon, 31 Aug 2015 10:52:36 -0400 Date: Mon, 31 Aug 2015 16:51:56 +0200 From: David Sterba To: Zhao Lei Cc: linux-btrfs@vger.kernel.org Subject: Re: [PATCH v2 3/4] btrfs-progs: tests: umount TEST_MNT in clean-tests.sh Message-ID: <20150831145156.GV11834@twin.jikos.cz> Reply-To: dsterba@suse.cz References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii In-Reply-To: Sender: linux-btrfs-owner@vger.kernel.org List-ID: On Mon, Aug 31, 2015 at 01:04:38PM +0800, Zhao Lei wrote: > If a testcase failed, we can't run it(or other tests needs mount) again, > # ./misc-tests.sh 007 > [TEST] 007-subvolume-sync > failed: fail > test failed for case 007-subvolume-sync > # ./misc-tests.sh 007 > [TEST] 007-subvolume-sync > failed: mount /root/btrfs-progs/tests/test.img /root/btrfs-progs/tests/mnt > test failed for case 007-subvolume-sync > # > > This patch add "umount $TEST_MNT" to clean-tests.sh, to let user > clean mountpoint easily. > > After patch: > # ./misc-tests.sh 007 > [TEST] 007-subvolume-sync > failed: fail > test failed for case 007-subvolume-sync > # > # clean-tests.sh > # > # ./misc-tests.sh 007 > [TEST] 007-subvolume-sync > failed: fail > test failed for case 007-subvolume-sync > # > > Changelog v1->v2: > Put umount command to clean-tests.sh instead of in testscript, > to keep failed-test stat until user run clean-tests.sh > explicitly, Suggested-by: David Sterba > > Suggested-by: David Sterba > Signed-off-by: Zhao Lei Applied, thanks.