1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00

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>
This commit is contained in:
Martin Schwenke 2020-03-05 21:48:59 +11:00 committed by Martin Schwenke
parent 244eaad76a
commit c6c81ea287

View File

@ -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