check: don't leave the scratch filesystem mounted after _notrun
[xfstests-dev.git] / check
diff --git a/check b/check
index bb7e030c15cce687fe599d64ff530d36429b934b..242cb8c1e6f71004e5fb531e7b79e1cada2e8431 100755 (executable)
--- 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