tput: No value for $TERM and no -T specified
See original GitHub issueCurrent behavior
When running Cypress in CI environments, $TERM
is unset and thus we always get the following error/warning:
tput: No value for $TERM and no -T specified
Desired behavior
There should be no warning message. I’ve looked at this StackOverflow answer and it seems like it should be fixed here in Cypress:
You can either manually assign a
TERM
value to the cron job (likelydumb
or something similar to that) or (and this is likely the better solution) you can find out what is calling tput and remove that call.
You should skip the tput
call when running in CI environments where TERM
isn’t specified.
Test code to reproduce
See this GitHub action run or all of these issues that also show the same warning message (related especially to #5571 which mentions this same warning message).
You should be able to reproduce just by running cypress run
in a CI environment.
Versions
Cypress: 6.8.0 Browser: N/A CI: GitHub Actions (but also appears in Jenkins and CircleCI)
Issue Analytics
- State:
- Created 2 years ago
- Reactions:1
- Comments:5 (2 by maintainers)
Hi, was this solved? We’re getting the same error in CI and unable to run our Cypress tests
We would also be open to a PR if someone tracks this down and can test/remove it.