Skip to content

action_should_fail_with_message does not exit with 1 #855

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

Closed
borkaehw opened this issue Oct 3, 2019 · 3 comments
Closed

action_should_fail_with_message does not exit with 1 #855

borkaehw opened this issue Oct 3, 2019 · 3 comments

Comments

@borkaehw
Copy link
Contributor

borkaehw commented Oct 3, 2019

action_should_fail_with_message is not working as expected. Changing the failing message doesn't fail the test since action_should_fail_with_message doesn't exit 1 in the elif [ $GREP_RES -ne 0 ]; then statement.

This bug affects 4 following tests:

  1. test_javac_jvm_flags.sh: javac_jvm_flags_are_expanded
  2. test_javac_jvm_flags.sh: javac_jvm_flags_via_javacopts_are_expanded
  3. test_scalac_jvm_flags.sh: test_scalac_jvm_flags_are_expanded
  4. test_toolchain.sh: java_toolchain_javacopts_are_used

Once exit 1 is added, it fixes 1 and 2, but it also reveals 3 and 4 are existing failing tests.

@borkaehw borkaehw mentioned this issue Oct 3, 2019
18 tasks
@ittaiz
Copy link
Contributor

ittaiz commented Oct 5, 2019

Do you have an idea on how to fix 3/4? Do you need a hand? Would you rather send a PR where they fail and have me or @johnynek iterate on it to fix 3/4?

@borkaehw
Copy link
Contributor Author

borkaehw commented Oct 7, 2019

I currently have no idea how to fix 3/4. I appreciate for the help.

This is the PR #860. You may not see 4 failing since our test framework stops when it encounters the first failure. It will be better if CI can run all the tests before stopping.

@liucijus
Copy link
Collaborator

liucijus commented Feb 2, 2021

Closed via #1198

@liucijus liucijus closed this as completed Feb 2, 2021
gergelyfabian pushed a commit to gergelyfabian/rules_scala that referenced this issue May 31, 2022
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

3 participants