From 7280a5e81ecc1092bcec58e3fb7f494fc6d95dfa Mon Sep 17 00:00:00 2001 From: Eric Biggers Date: Sat, 21 Nov 2020 15:29:26 -0800 Subject: [PATCH] cli-tests: force processes spawned by 'expect' to have 80 column-output Otherwise the cli tests fail when executed from GitHub Actions. --- cli-tests/common.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/cli-tests/common.sh b/cli-tests/common.sh index 527eaa4..896d042 100644 --- a/cli-tests/common.sh +++ b/cli-tests/common.sh @@ -164,3 +164,9 @@ _setup_session_keyring() # Clear the test user's keyring. _user_do "keyctl clear @u" } + +# Wraps the 'expect' command to force subprocesses to have 80-column output. +expect() +{ + command expect -c 'set stty_init "cols 80"' -f - +} -- 2.39.5