test: Fix samba3.blackbox.net.registry.check
authorVolker Lendecke <vl@samba.org>
Thu, 27 Nov 2014 21:04:58 +0000 (22:04 +0100)
committerRalph Böhme <slow@samba.org>
Fri, 28 Nov 2014 09:24:05 +0000 (10:24 +0100)
On FreeBSD, "wc -l" returns whitespace. Cope with that.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
Autobuild-User(master): Ralph Böhme <slow@samba.org>
Autobuild-Date(master): Fri Nov 28 10:24:06 CET 2014 on sn-devel-104

source3/script/tests/test_net_registry_check.sh

index 1e3522d697cb221fbcb8c7b277aa808576d8ce82..566e63f5d4076c7eeb96cf181bd335b6cc3fb083 100755 (executable)
@@ -55,7 +55,7 @@ regchecknrepair()
 
        regcheck
        checkerr "$EXPERR"
-       test "x$?" = "x$ERRCNT" || {
+       test "$?" -eq "$ERRCNT" || {
                echo "Expected $EXPERRCNT of error $EXPERR. Received $ERRCNT"
                return 1
        }