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 committed by Quanah Gibson-Mount
parent 6a16ee5286
commit 1112612b26

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 ">>>>> Executing all LDAP tests for the Load Balancer"
if [ -n "$NOEXIT" ]; then