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

sany: return non-zero exit code if there are errors #9

Open
anton-trunov opened this issue May 23, 2020 · 3 comments
Open

sany: return non-zero exit code if there are errors #9

anton-trunov opened this issue May 23, 2020 · 3 comments

Comments

@anton-trunov
Copy link

I've noticed that the sany script always returns 0 error code even if there are e.g. parse errors in the input file. E.g. I would like it to return a non-zero code to use it in the test suite of a transpiler targeting TLA+ I'm working on. By the way, thank you for tla-bin!

@pmer
Copy link
Owner

pmer commented Nov 29, 2021

Hi, thank you for the report. It looks like if one passes the -error-codes argument to sany on the nightly build then it will do exactly as you request. I've just added a --nightly flag to the download script which will install this.

Looks like they added this command line argument four months after this PR was filed! tlaplus/tlaplus#483

Please share if this works for your use case!

@anton-trunov
Copy link
Author

Yes, this definitely works. Looking forward to the v1.8 release!

@pmer
Copy link
Owner

pmer commented Jun 11, 2022

Happy to hear it! 🙂

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