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

[feature] assert_output should --separate-stderr in run #48

Closed
nicola-lunghi opened this issue Sep 15, 2022 · 3 comments
Closed

[feature] assert_output should --separate-stderr in run #48

nicola-lunghi opened this issue Sep 15, 2022 · 3 comments

Comments

@nicola-lunghi
Copy link

@test "ut get_port invalidmachine" {
    # badtestmachine is not in the config
    run --separate-stderr -- get_port "badtestmachine"
    assert_failure
    assert_output "ERROR: Machine 'badtestmachine' is not valid"
}

This passes without --separate-stderr
add an option or a command to test also for stderr.
This should apply also to the other assert_ functions.

@nicola-lunghi
Copy link
Author

maybe add a '--stderr' option to assert_output?

@martin-schulze-vireso
Copy link
Member

See #42 for a related discussion. If you want to check stderr, you can either not use --separate-stderr or use the workaround in the linked issue.

@nicola-lunghi
Copy link
Author

Nice! Yes that solve the issue thanks!

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

No branches or pull requests

2 participants