aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Biggers <ebiggers@google.com>2020-11-21 15:29:26 -0800
committerJoseph Richey <joerichey94@gmail.com>2020-11-26 01:08:36 -0800
commit7280a5e81ecc1092bcec58e3fb7f494fc6d95dfa (patch)
tree6fa5ec142f39ba0ec2dc06582575673831f8fe4f
parent66b49d9054dfc13f187ee92add608fd815edbb9f (diff)
cli-tests: force processes spawned by 'expect' to have 80 column-output
Otherwise the cli tests fail when executed from GitHub Actions.
-rw-r--r--cli-tests/common.sh6
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 -
+}