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

Allow multiple asserts on standalone exit_code assertion #339

Open
Chemaclass opened this issue Sep 28, 2024 · 0 comments · May be fixed by #340
Open

Allow multiple asserts on standalone exit_code assertion #339

Chemaclass opened this issue Sep 28, 2024 · 0 comments · May be fixed by #340
Assignees
Labels
enhancement New feature or request

Comments

@Chemaclass
Copy link
Member

Related: #336 (comment)

Enable running an additional assertion over the generated output from assert_exit_code (docs).

Example 1

bashunit -a exit_code "1" "the_command" -a contains "some error"

Would be identical as:

OUTPUT=$(bashunit -a exit_code "1" "the_command")
bashunit -a contains "some error" $OUTPUT
@Chemaclass Chemaclass added the enhancement New feature or request label Sep 28, 2024
@Chemaclass Chemaclass self-assigned this Sep 28, 2024
@Chemaclass Chemaclass moved this to In Progress in bashunit Sep 28, 2024
@Chemaclass Chemaclass linked a pull request Sep 29, 2024 that will close this issue
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Todo
Development

Successfully merging a pull request may close this issue.

1 participant