mirror of
https://github.com/samba-team/samba.git
synced 2025-01-03 01:18:10 +03:00
ctdb-tests: Reformat script
Samba is reformatting shell scripts using shfmt -w -p -i 0 -fn so update this one before editing. Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@gmail.com>
This commit is contained in:
parent
bcd66e17ee
commit
5fa0c86b61
@ -83,8 +83,8 @@ Output (Exit status: ${_rc}):
|
||||
--------------------------------------------------
|
||||
EOF
|
||||
# Avoid echo, which might expand unintentional escapes
|
||||
printf '%s\n' "$_out" | \
|
||||
result_filter | \
|
||||
printf '%s\n' "$_out" |
|
||||
result_filter |
|
||||
cat "${CTDB_TEST_CAT_RESULTS_OPTS:--}"
|
||||
fi
|
||||
|
||||
@ -95,7 +95,7 @@ Required output (Exit status: ${required_rc}):
|
||||
--------------------------------------------------
|
||||
EOF
|
||||
# Avoid echo, which might expand unintentional escapes
|
||||
printf '%s\n' "$required_output" | \
|
||||
printf '%s\n' "$required_output" |
|
||||
cat "${CTDB_TEST_CAT_RESULTS_OPTS:--}"
|
||||
|
||||
if $CTDB_TEST_DIFF_RESULTS; then
|
||||
@ -162,7 +162,8 @@ result_check ()
|
||||
# Avoid echo, which might expand unintentional escapes
|
||||
_fout=$(printf '%s\n' "$_out" | result_filter)
|
||||
|
||||
if [ "$_fout" = "$required_output" ] && [ "$_rc" = "$required_rc" ] ; then
|
||||
if [ "$_fout" = "$required_output" ] &&
|
||||
[ "$_rc" = "$required_rc" ]; then
|
||||
_passed=true
|
||||
else
|
||||
_passed=false
|
||||
|
Loading…
Reference in New Issue
Block a user