Refactor test.sh scripts for consistency

This commit is contained in:
Rangi42
2024-08-18 21:13:48 -04:00
committed by Sylvie
parent 7cf4156003
commit 731715ff36
4 changed files with 40 additions and 31 deletions

View File

@@ -10,14 +10,15 @@ gb="$(mktemp)"
input="$(mktemp)"
output="$(mktemp)"
errput="$(mktemp)"
tests=0
failed=0
rc=0
# Immediate expansion is the desired behavior.
# shellcheck disable=SC2064
trap "rm -f ${o@Q} ${gb@Q} ${input@Q} ${output@Q} ${errput@Q}" EXIT
tests=0
failed=0
rc=0
bold="$(tput bold)"
resbold="$(tput sgr0)"
red="$(tput setaf 1)"