Specify COLUMNS in test scripts for consistent output

This commit is contained in:
Rangi
2026-09-06 00:07:16 +02:00
committed by Eldred Habert
parent a0ab1802ff
commit 7d0cb000e8
4 changed files with 20 additions and 1 deletions
+6
View File
@@ -3,6 +3,12 @@
[[ -e ./rgbgfx_test ]] || make -C ../.. test/gfx/rgbgfx_test Q= ${CXX:+"CXX=$CXX"} || exit
[[ -e ./randtilegen ]] || make -C ../.. test/gfx/randtilegen Q= ${CXX:+"CXX=$CXX"} || exit
export LC_ALL=C
# Screen width for help/usage text (for reproducible test results)
export COLUMNS=79
shopt -u checkwinsize # Prevent subsequent commands from resetting `COLUMNS`
errtmp="$(mktemp)"
# shellcheck disable=SC2064 # (Immediate expansion is the desired behavior.)