From f81e1de630c955578bbab6c4ca638aae265e11c6 Mon Sep 17 00:00:00 2001
From: Quanah Gibson-Mount <quanah@openldap.org>
Date: Mon, 12 Feb 2018 23:50:17 +0000
Subject: [PATCH] ITS#4336 - Fix regression test to be valid

---
 tests/data/regressions/its4336/its4336 | 11 ++++++++---
 1 file changed, 8 insertions(+), 3 deletions(-)

diff --git a/tests/data/regressions/its4336/its4336 b/tests/data/regressions/its4336/its4336
index 9ed231386c..62ee53b77b 100755
--- a/tests/data/regressions/its4336/its4336
+++ b/tests/data/regressions/its4336/its4336
@@ -16,15 +16,20 @@
 echo "running defines.sh"
 . $SRCDIR/scripts/defines.sh
 
-if test $BACKLDAP != "ldapno" ; then
+if test $BACKLDAP = "ldapno" ; then
 	echo "LDAP backend not available, test skipped"
 	exit 0
-fi 
+fi
 
 if test $RETCODE = retcodeno; then 
 	echo "Retcode overlay not available, test skipped"
 	exit 0
-fi 
+fi
+
+if test "$BACKEND" = "ldap"; then
+	echo "LDAP backend not valid, test skipped"
+	exit 0
+fi
 
 mkdir -p $TESTDIR $DBDIR1
 
-- 
GitLab