diff options
author | Martin Schwenke <martin@meltin.net> | 2020-03-05 21:48:59 +1100 |
---|---|---|
committer | Martin Schwenke <martins@samba.org> | 2020-07-22 07:53:36 +0000 |
commit | c6c81ea287924c2924aebc6dc0cdea1dc4322ae2 (patch) | |
tree | 7a93e7d95328f2430d806439a3bd9168515cbaad | |
parent | 244eaad76a83f13399c3fffbde4783ecb1bc9f85 (diff) | |
download | samba-c6c81ea287924c2924aebc6dc0cdea1dc4322ae2.tar.gz |
ctdb-tests: Improve test portability
"wc -l" on some platforms (e.g. FreeBSD) contains leading spaces, so
strip them.
Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
-rwxr-xr-x | ctdb/tests/INTEGRATION/simple/cluster.010.getrelock.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ctdb/tests/INTEGRATION/simple/cluster.010.getrelock.sh b/ctdb/tests/INTEGRATION/simple/cluster.010.getrelock.sh index 58633af973d..03cf4317a39 100755 --- a/ctdb/tests/INTEGRATION/simple/cluster.010.getrelock.sh +++ b/ctdb/tests/INTEGRATION/simple/cluster.010.getrelock.sh @@ -18,7 +18,7 @@ if [ -z "$out" ] ; then exit 0 fi -n=$(sort -u "$outfile" | wc -l) +n=$(sort -u "$outfile" | wc -l | tr -d '[:space:]') if [ "$n" = 1 ] ; then echo "GOOD: All nodes have the same recovery lock setting" else |