Fix intermittent cleanup failures in the ggated test

MFC after:	2 weeks
This commit is contained in:
Alan Somers 2020-05-03 18:10:54 +00:00
parent 8a1cd3cee3
commit 4abfd5bd93
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=360613

View File

@ -198,7 +198,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