for i in $(seq 10); do \
sudo kyua test -k /usr/tests/sys/geom/class/gate/Kyuafile \
ggate_test:ggated || break; \
done
->
...
ggate_test:ggated -> passed [27.406s]
Results file id is usr_tests_sys_geom_class_gate.20170201-164729-582240
Results saved to /root/.kyua/store/results.usr_tests_sys_geom_class_gate.20170201-164729-582240.db
1/1 passed (0 failed)
$ echo $? $i
0 10
$