check: don't leave the scratch filesystem mounted after _notrun
authorDarrick J. Wong <djwong@kernel.org>
Wed, 28 Jul 2021 00:09:48 +0000 (17:09 -0700)
committerEryu Guan <guaneryu@gmail.com>
Sun, 1 Aug 2021 13:05:27 +0000 (21:05 +0800)
commit057869ad38aeed3091df8a54c1de8db3a4aa7ed8
tree6faad94fa4ef6783389744a86082f46d407f8335
parent5a501c2635ded65d4a4282eae1e8325e25fe4ced
check: don't leave the scratch filesystem mounted after _notrun

Unmount the scratch filesystem if a test decides to _notrun itself
because _try_wipe_scratch_devs will not be able to wipe the scratch
device prior to the next test run.  We don't want to let scratch state
from one test leak into subsequent tests if we can help it.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Eryu Guan <guaneryu@gmail.com>
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
check