diff options
| author | Eric Biggers <ebiggers@google.com> | 2020-11-21 15:29:26 -0800 |
|---|---|---|
| committer | Joseph Richey <joerichey94@gmail.com> | 2020-11-26 01:08:36 -0800 |
| commit | 7280a5e81ecc1092bcec58e3fb7f494fc6d95dfa (patch) | |
| tree | 6fa5ec142f39ba0ec2dc06582575673831f8fe4f /cli-tests | |
| parent | 66b49d9054dfc13f187ee92add608fd815edbb9f (diff) | |
cli-tests: force processes spawned by 'expect' to have 80 column-output
Otherwise the cli tests fail when executed from GitHub Actions.
Diffstat (limited to 'cli-tests')
| -rw-r--r-- | cli-tests/common.sh | 6 |
1 files changed, 6 insertions, 0 deletions
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 - +} |