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

clisqlshell: new testing flag --no-line-editor #87690

Merged
merged 1 commit into from
Sep 19, 2022

Conversation

knz
Copy link
Contributor

@knz knz commented Sep 9, 2022

Needed for #86457.

When running the interactive tests, when a test fails we want to be able to investigate the test logs without noise from the terminal escape codes.

This patch adds a new flag --no-line-editor that can be used in these tests.

(It can also arguably be used to demonstrate visually the differences between having a line editor and not having one.)

Release note: None

@knz knz requested review from otan and a team September 9, 2022 13:03
@knz knz requested a review from a team as a code owner September 9, 2022 13:03
@cockroach-teamcity
Copy link
Member

This change is Reviewable

@knz knz force-pushed the 20220909-no-line-editor branch 2 times, most recently from 49ee30f to fad15db Compare September 9, 2022 13:46
@knz
Copy link
Contributor Author

knz commented Sep 9, 2022

CI flake from #87700

func InterruptSelf() error {
pr, err := os.FindProcess(os.Getpid())
if err != nil {
// No-op.
Copy link
Contributor

Choose a reason for hiding this comment

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

Does this noop comment also intend a return err here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good call. Fixed.

When running the interactive tests, when a test fails we want to be
able to investigate the test logs without noise from the terminal
escape codes.

This patch adds a new flag `--no-line-editor` that can be used in
these tests.

(It can also arguably be used to demonstrate visually the differences
between having a line editor and not having one.)

Release note: None
@knz
Copy link
Contributor Author

knz commented Sep 19, 2022

TFYR

bors r=otan

@craig
Copy link
Contributor

craig bot commented Sep 19, 2022

Build succeeded:

@craig craig bot merged commit 87ed064 into cockroachdb:master Sep 19, 2022
@knz knz deleted the 20220909-no-line-editor branch September 19, 2022 03:42
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.

None yet

3 participants