mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-02-11 23:03:21 -05:00
ITS#9931 test scripts: fix BSD vs GNU date syntax
This commit is contained in:
parent
fb1c0d6214
commit
572a9a1597
1 changed files with 9 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue