mirror of
https://github.com/gbdev/rgbds.git
synced 2026-09-09 15:27:07 +00:00
Specify COLUMNS in test scripts for consistent output
This commit is contained in:
@@ -2,6 +2,10 @@
|
||||
|
||||
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`
|
||||
|
||||
tmpdir="$(mktemp -d)"
|
||||
# shellcheck disable=SC2064 # (Immediate expansion is the desired behavior.)
|
||||
trap "cd; rm -rf ${tmpdir@Q}" EXIT
|
||||
|
||||
Reference in New Issue
Block a user