ITS#9931 test scripts: fix BSD vs GNU date syntax

This commit is contained in:
Howard Chu 2022-10-11 17:03:34 +01:00
parent fb1c0d6214
commit 572a9a1597

View file

@ -25,6 +25,15 @@ FAILCOUNT=0
SKIPCOUNT=0
SLEEPTIME=10
# check for BSD vs GNU date
date -j >/dev/null 2>&1
RC=$?
if [ $RC -ne 0 ]; then
DATEOPT="-d @"
else
DATEOPT="-r "
fi
echo ">>>>> $(timer) Executing all LDAP tests for the Load Balancer"
if [ -n "$NOEXIT" ]; then