svn commit: r361127 - stable/12/tests/sys/geom/class/gate
Alan Somers
asomers at FreeBSD.org
Sun May 17 02:36:43 UTC 2020
Author: asomers
Date: Sun May 17 02:36:42 2020
New Revision: 361127
URL: https://svnweb.freebsd.org/changeset/base/361127
Log:
MFC r360613:
Fix intermittent cleanup failures in the ggated test
Modified:
stable/12/tests/sys/geom/class/gate/ggate_test.sh
Directory Properties:
stable/12/ (props changed)
Modified: stable/12/tests/sys/geom/class/gate/ggate_test.sh
==============================================================================
--- stable/12/tests/sys/geom/class/gate/ggate_test.sh Sun May 17 02:35:50 2020 (r361126)
+++ stable/12/tests/sys/geom/class/gate/ggate_test.sh Sun May 17 02:36:42 2020 (r361127)
@@ -194,7 +194,11 @@ common_cleanup()
if [ -f "md.devs" ]; then
while read test_md; do
- mdconfig -d -u $test_md 2>/dev/null
+ # ggatec destroy doesn't release the provider
+ # synchronously, so we may need to retry destroying it.
+ while ! mdconfig -d -u $test_md; do
+ sleep 0.1
+ done
done < md.devs
rm md.devs
fi
More information about the svn-src-stable-12
mailing list