aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMark Johnston <markj@FreeBSD.org>2017-12-14 22:15:46 +0000
committerMark Johnston <markj@FreeBSD.org>2017-12-14 22:15:46 +0000
commit21274cad3322702f7ce2245eb55a8e168185526a (patch)
tree345b07e324fd729485e1637932cbefaaeca964c7 /tests
parent504eda202160ee97329b1ab8ee9e3fce93a354e9 (diff)
Notes
Diffstat (limited to 'tests')
-rw-r--r--tests/sys/geom/class/mirror/conf.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/sys/geom/class/mirror/conf.sh b/tests/sys/geom/class/mirror/conf.sh
index d8595f199bf3..1cb785e5113f 100644
--- a/tests/sys/geom/class/mirror/conf.sh
+++ b/tests/sys/geom/class/mirror/conf.sh
@@ -12,4 +12,11 @@ gmirror_test_cleanup()
}
trap gmirror_test_cleanup ABRT EXIT INT TERM
+syncwait()
+{
+ while $(gmirror status -s $name | grep -q SYNCHRONIZING); do
+ sleep 0.1;
+ done
+}
+
. `dirname $0`/../geom_subr.sh