ctdb-tests: Don't expand octal escapes in unit test output
authorMartin Schwenke <martin@meltin.net>
Mon, 26 Mar 2018 07:32:57 +0000 (18:32 +1100)
committerAmitay Isaacs <amitay@samba.org>
Tue, 27 Mar 2018 07:06:14 +0000 (09:06 +0200)
commitce5116cfb3990de8a088012bee9fd9f94bd21c97
tree43169561b427a8e2acbc6cff478531fcbb4353ec
parent7da9802acdb1ec1d76050064f54aae38b21a03d4
ctdb-tests: Don't expand octal escapes in unit test output

The echo command in dash expands octal escapes in strings by default
but the echo command in bash doesn't.  Since the behaviour is
ill-defined, use printf to handle affected strings.  However, ensure
that these strings aren't used as format strings.

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
Autobuild-User(master): Amitay Isaacs <amitay@samba.org>
Autobuild-Date(master): Tue Mar 27 09:06:14 CEST 2018 on sn-devel-144
ctdb/tests/scripts/unit.sh