diff options
author | EuAndreh <eu@euandre.org> | 2021-07-26 10:30:06 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2021-07-26 10:41:49 -0300 |
commit | 4670d66a180e23dcea533f9c47b618c5ed0043f1 (patch) | |
tree | 576a63f960758ef9c4dd4c7dcc40d5135fad5e27 /tests/tests-lib.sh | |
parent | aux/ci/: Point to /srv/http instead of /srv/git (diff) | |
download | git-permalink-4670d66a180e23dcea533f9c47b618c5ed0043f1.tar.gz git-permalink-4670d66a180e23dcea533f9c47b618c5ed0043f1.tar.xz |
src/, tests/: Stick to 80 columns with 8-chars wide tabs
Diffstat (limited to 'tests/tests-lib.sh')
-rwxr-xr-x | tests/tests-lib.sh | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/tests/tests-lib.sh b/tests/tests-lib.sh index 03edc2d..25079b9 100755 --- a/tests/tests-lib.sh +++ b/tests/tests-lib.sh @@ -16,7 +16,8 @@ ERROR() { } print_debug_info() { - printf 'LINENO: %s\nOUT: %s\nERR: %s\n' "$N" "$OUT" "$ERR" >&2 + printf 'LINENO: %s\nOUT: %s\nERR: %s\n' \ + "$N" "$OUT" "$ERR" >&2 } assert_status() { @@ -39,7 +40,9 @@ assert_usage() { assert_empty_stream() { if [ -s "$2" ]; then - printf '\n%s: Expected %s (%s) to be empty, but has content:\n%s\n' \ + FMT='\n%s: Expected %s (%s) to be empty, but has content:\n%s\n' + # shellcheck disable=2059 + printf "$FMT" \ "$(ERROR)" "$1" "$2" "$(cat "$2")" >&2 print_debug_info exit 1 |