From e28e002ebca7b7746cc6a65db84e902634027d40 Mon Sep 17 00:00:00 2001 From: Leah Neukirchen Date: Sat, 3 Jun 2017 16:00:47 +0200 Subject: tests: reindent --- tests | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'tests') diff --git a/tests b/tests index c59f4b6..2e59761 100755 --- a/tests +++ b/tests @@ -8,19 +8,19 @@ xe() { "${XE:-./xe}" "$@"; } necho() { for a; do printf '%s\n' "$a"; done; } check_output() { - msg=$1 - expected="$(cat)" - shift - if output="$(eval "$@" 2>&1)"; then - if [ "$output" = "$expected" ]; then - printf 'ok - %s\n' "$msg" - return - fi - fi - printf 'not ok - %s\n' "$msg" - if [ "$output" != "$expected" ]; then - printf 'Unexpected output:\n%s\n' "$output" | sed 's/^/# /' - fi + msg=$1 + expected="$(cat)" + shift + if output="$(eval "$@" 2>&1)"; then + if [ "$output" = "$expected" ]; then + printf 'ok - %s\n' "$msg" + return + fi + fi + printf 'not ok - %s\n' "$msg" + if [ "$output" != "$expected" ]; then + printf 'Unexpected output:\n%s\n' "$output" | sed 's/^/# /' + fi } printf '# simple tests\n' -- cgit 1.4.1