Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(PDK-643) Remove escape sequence spam when running in CI systems #353

Merged
merged 1 commit into from
Nov 20, 2017

Conversation

rodjek
Copy link
Contributor

@rodjek rodjek commented Nov 16, 2017

Determines if the process is being run interactively by checking if stderr is a TTY and only create the spinners when the PDK is run interactively.

Acceptance tests for this proved to be troublesome as the specinfra exec backend doesn't support creating a PTY. I created a new backend for specinfra but it turns out that Windows doesn't support PTYs anyway, so that had to be thrown away and I've instead gone for an environment variable (h/t to DEBIAN_FRONTEND) to override the TTY check during tests.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.02%) to 92.615% when pulling f7c1f3c on rodjek:pdk-643 into 5945270 on puppetlabs:master.

@bmjen bmjen merged commit 7baf882 into puppetlabs:master Nov 20, 2017
@rodjek rodjek deleted the pdk-643 branch November 21, 2017 02:07
@DavidS DavidS added the feature label Nov 27, 2017
@DavidS DavidS changed the title (PDK-643) Do not display spinners when not running interactively (PDK-643) Remove escape sequence spam when running in CI systems Nov 27, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants