]> git.ipfire.org Git - thirdparty/samba.git/commit
ctdb-tests: Improve test portability
authorMartin Schwenke <martin@meltin.net>
Thu, 5 Mar 2020 09:21:26 +0000 (20:21 +1100)
committerAmitay Isaacs <amitay@samba.org>
Wed, 22 Jul 2020 02:42:38 +0000 (02:42 +0000)
commit1079d6e3ae5805ef65a3628edf0a3ac2cd7fac1c
tree410272f4f1c159abd67bb645b2251516773b3a97
parentaa5b214eaa88414c87410fd068fe7624e9790185
ctdb-tests: Improve test portability

"wc -l" on some platforms (e.g. FreeBSD) contains leading spaces and
stops "$num from being a number.  Create a more portable solution and
put it in a function instead of repeating the logic.

Signed-off-by: Martin Schwenke <martin@meltin.net>
ctdb/tests/INTEGRATION/failover/pubips.040.NoIPTakeover.sh