[test] fix multiple extra options (#5158)

This commit is contained in:
Yakun Xu
2020-06-29 09:04:01 -07:00
committed by GitHub
parent 6f1fc2e6c2
commit bd078f1b30
+5 -2
View File
@@ -337,8 +337,11 @@ envsetup()
export -n VERBOSE
fi
read -r -a ot_extra_options_in <<<"${OT_OPTIONS-}"
ot_extra_options=${ot_extra_options_in:-()}
if [[ ${OT_OPTIONS+x} ]]; then
read -r -a ot_extra_options <<<"${OT_OPTIONS}"
else
ot_extra_options=()
fi
}
main()