[PATCH] test: Fix samba3.blackbox.net.registry.check
Ralph Böhme
rb at sernet.de
Fri Nov 28 00:01:45 MST 2014
Reviewed and pushed.
-Ralph
On Thu, Nov 27, 2014 at 10:12:42PM +0100, Volker Lendecke wrote:
> Hi!
>
> Review&push appreciated :-)
>
> Thanks,
>
> Volker
>
> --
> SerNet GmbH, Bahnhofsallee 1b, 37081 Göttingen
> phone: +49-551-370000-0, fax: +49-551-370000-9
> AG Göttingen, HRB 2816, GF: Dr. Johannes Loxen
> http://www.sernet.de, mailto:kontakt at sernet.de
> From 1f87aca43cfc520fa7fe295b0e5becb94aa4002b Mon Sep 17 00:00:00 2001
> From: Volker Lendecke <vl at samba.org>
> Date: Thu, 27 Nov 2014 22:04:58 +0100
> Subject: [PATCH] test: Fix samba3.blackbox.net.registry.check
>
> On FreeBSD, "wc -l" returns whitespace. Cope with that.
>
> Signed-off-by: Volker Lendecke <vl at samba.org>
> ---
> source3/script/tests/test_net_registry_check.sh | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/source3/script/tests/test_net_registry_check.sh b/source3/script/tests/test_net_registry_check.sh
> index 1e3522d..566e63f 100755
> --- a/source3/script/tests/test_net_registry_check.sh
> +++ b/source3/script/tests/test_net_registry_check.sh
> @@ -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
> }
> --
> 2.1.0
>
--
--
SerNet GmbH, Bahnhofsallee 1b, 37081 Göttingen
phone: +49-551-370000-0, fax: +49-551-370000-9
AG Göttingen, HRB 2816, GF: Dr. Johannes Loxen
http://www.sernet.de,mailto:kontakt@sernet.de
More information about the samba-technical
mailing list