Skip to content

run-test262: disable progress indicator on non-TTY outputs#1094

Merged
bnoordhuis merged 1 commit intoquickjs-ng:masterfrom
pinotree:run-test262-tty-check
Jun 5, 2025
Merged

run-test262: disable progress indicator on non-TTY outputs#1094
bnoordhuis merged 1 commit intoquickjs-ng:masterfrom
pinotree:run-test262-tty-check

Conversation

@pinotree
Copy link
Copy Markdown
Contributor

@pinotree pinotree commented Jun 4, 2025

In case stdout is not a TTY (e.g. a pipe), trying to rewrite the last line (using \r) does not work, and the output of the test execution gets mangled by the progress indicator.

Hence, do not use a progress indicator at all in case the output is not a TTY (checked only on non-Windows OSes).

In case stdout is not a TTY (e.g. a pipe), trying to rewrite the last
line (using \r) does not work, and the output of the test execution
gets mangled by the progress indicator.

Hence, do not use a progress indicator at all in case the output is not
a TTY (checked only on non-Windows OSes).
Copy link
Copy Markdown
Contributor

@saghul saghul left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

WDYT @bnoordhuis ?

@bnoordhuis bnoordhuis merged commit 0469489 into quickjs-ng:master Jun 5, 2025
127 checks passed
@pinotree pinotree deleted the run-test262-tty-check branch June 5, 2025 07:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants