cluster=
role=
type=
+skip_tests_not_found=0
host_split_chars='.'
parallel=40
retries=3
if [ ! -z "$role_types" ]; then
echo " -c <cluster> Specify cluster type one of ($cluster_types)."
echo " -r <type> Specify server role one of ($role_types)."
+ echo " -S Skip host if we can't find a matching cluster or role".
echo
echo "Note: Test path globs are relative to ${TESTDIR}/<cluster>/<type>/"
fi
role_types=$(echo $role_types | sed 's/\s/ /g') # Change \n back to spaces
fi
-while getopts "h?H:vc:r:s:p:" opt; do
+while getopts "h?H:vd:c:r:s:Sp:" opt; do
case "$opt" in
h|\?)
usage
secret="$OPTARG"
;;
+ S)
+ skip_tests_not_found=1
+ ;;
p)
if ! echo "$OPTARG" | grep -E '^[0-9]+$' > /dev/null; then
ERROR "Non integer argument '$OPTARG' specified for -p"
[ -n "${cluster}" ] && [ -n "${role}" ] && break
done
- if [ $skip_tests_not_found -eq 1 ] && [ -z "$cluster" ] || [ -z "$role" ] && ; then
+ if [ $skip_tests_not_found -eq 1 ] && [ -z "$cluster" ] || [ -z "$role" ] ; then
DEBUG "Skipping tests for host $target_host: couldn't determine cluster or role"
exit 0
fi