summaryrefslogtreecommitdiff
path: root/ctdb/tests
diff options
context:
space:
mode:
authorMartin Schwenke <martin@meltin.net>2020-03-05 21:48:59 +1100
committerAmitay Isaacs <amitay@samba.org>2020-07-22 02:42:38 +0000
commit1f6556916e7f3a731d7d760fa6fd857e7f571541 (patch)
tree0faea42dbfaeeb53cf58e7c69f5c570288776a62 /ctdb/tests
parentea1cbff624383fb9d5b83b863fa6bd00a8fb77fa (diff)
downloadsamba-1f6556916e7f3a731d7d760fa6fd857e7f571541.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>
Diffstat (limited to 'ctdb/tests')
-rwxr-xr-xctdb/tests/INTEGRATION/simple/cluster.010.getrelock.sh2
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