diff options
author | Martin Schwenke <martin@meltin.net> | 2020-03-05 21:48:59 +1100 |
---|---|---|
committer | Amitay Isaacs <amitay@samba.org> | 2020-07-22 02:42:38 +0000 |
commit | 1f6556916e7f3a731d7d760fa6fd857e7f571541 (patch) | |
tree | 0faea42dbfaeeb53cf58e7c69f5c570288776a62 /ctdb/tests/INTEGRATION/simple | |
parent | ea1cbff624383fb9d5b83b863fa6bd00a8fb77fa (diff) | |
download | samba-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/INTEGRATION/simple')
-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 |