ldb: make test output more readable
authorMatthieu Patou <mat@matws.net>
Sun, 30 Dec 2012 00:42:28 +0000 (16:42 -0800)
committerStefan Metzmacher <metze@samba.org>
Tue, 29 Jan 2013 21:03:13 +0000 (22:03 +0100)
Reviewed-by: Stefan Metzmacher <metze@samba.org>
lib/ldb/tests/test-controls.sh

index 771085ec606706db693ab859a69eca3ee4ae2da6..328ed29d08953926ff20cbcb85677661b6d996b7 100755 (executable)
@@ -27,13 +27,13 @@ EOF
 $VALGRIND ldbsearch "(touchedBy=sample)" | grep "touchedBy: sample" || exit 1
 # This action are expected to fails because the sample module return an error when presented the relax control
 
-cat <<EOF | $VALGRIND ldbadd --controls "relax:0" && exit 1
+cat <<EOF | $VALGRIND ldbadd --controls "relax:0" >/dev/null 2>&1 && exit 1
 dn: dc=foobar
 dc: foobar
 someThing: someThingElse
 EOF
 
-cat <<EOF | $VALGRIND ldbmodify --controls "relax:0" && exit 1
+cat <<EOF | $VALGRIND ldbmodify --controls "relax:0" >/dev/null 2>&1 && exit 1
 dn: dc=bar
 changetype: modify
 replace someThing
@@ -41,5 +41,3 @@ someThing: someThingElseBetter
 EOF
 
 $VALGRIND ldbsearch --controls "bypassoperational:0" >/dev/null 2>&1 || exit 1
-
-set