From: Arran Cudbard-Bell Date: Thu, 1 Jan 2026 11:10:14 +0000 (+0000) Subject: raduat: Add option to quietly skip tests for hosts we don't have cluster or role... X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=85f8e32f04335789fb903bee783d6ddd454475cf;p=thirdparty%2Ffreeradius-server.git raduat: Add option to quietly skip tests for hosts we don't have cluster or role definitions for --- diff --git a/scripts/util/raduat b/scripts/util/raduat index 804902a8142..4e242f2288c 100755 --- a/scripts/util/raduat +++ b/scripts/util/raduat @@ -24,6 +24,7 @@ verbose=0 cluster= role= type= +skip_tests_not_found=0 host_split_chars='.' parallel=40 retries=3 @@ -75,6 +76,7 @@ function usage if [ ! -z "$role_types" ]; then echo " -c Specify cluster type one of ($cluster_types)." echo " -r 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}///" fi @@ -148,7 +150,7 @@ else 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 @@ -196,6 +198,9 @@ while getopts "h?H:vc:r:s:p:" opt; do 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" @@ -235,7 +240,7 @@ if [ ! -z "$role_types" ]; then [ -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