summaryrefslogtreecommitdiff
path: root/check
diff options
context:
space:
mode:
authorDarrick J. Wong <djwong@kernel.org>2021-07-27 17:09:48 -0700
committerEryu Guan <guaneryu@gmail.com>2021-08-01 21:05:27 +0800
commit057869ad38aeed3091df8a54c1de8db3a4aa7ed8 (patch)
tree6faad94fa4ef6783389744a86082f46d407f8335 /check
parent5a501c2635ded65d4a4282eae1e8325e25fe4ced (diff)
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>
Diffstat (limited to 'check')
-rwxr-xr-xcheck4
1 files changed, 4 insertions, 0 deletions
diff --git a/check b/check
index bb7e030c..242cb8c1 100755
--- a/check
+++ b/check
@@ -871,6 +871,10 @@ function run_section()
notrun="$notrun $seqnum"
n_notrun=`expr $n_notrun + 1`
tc_status="notrun"
+
+ # Unmount the scratch fs so that we can wipe the scratch
+ # dev state prior to the next test run.
+ _scratch_unmount 2> /dev/null
continue;
fi