-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Check if variable=yes instead of if var is set in travis.sh #782
Conversation
I think that's an improvement but then we should do this for |
not-empty. Before this, setting `VALGRIND=wat` was considered as true, and to make it evaluate as false you had to unset the variable `VALGRIND=` but not it checks if `VALGRIND=yes` and if it's not `yes` then it's evaluated to false
Should we change the corresponding flags to |
We could, but unlike |
That was my thought. |
@elichai do you want to make that change? |
Sorry, forgot about this. pushed now. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ACK 34debf7
Summary: ``` Right now travis.sh checks if VALGRIND and CTIMETEST are set or not, but in travis.yml we explictly set them to yes so I think it's more intuitive to check if they're equal to yes such that setting CTIMETEST=no(or anything other than "yes") will disable the test. pointed out by @real-or-random here: #696 (comment) ``` Backport of secp256k1 [[bitcoin-core/secp256k1#782 | PR782]]. Includes the missing CTIMETEST variable for s390x. Depends on D7630. Test Plan: Run the Travis build. Reviewers: #bitcoin_abc, deadalnix Reviewed By: #bitcoin_abc, deadalnix Differential Revision: https://reviews.bitcoinabc.org/D7631
Summary: ``` Right now travis.sh checks if VALGRIND and CTIMETEST are set or not, but in travis.yml we explictly set them to yes so I think it's more intuitive to check if they're equal to yes such that setting CTIMETEST=no(or anything other than "yes") will disable the test. pointed out by @real-or-random here: #696 (comment) ``` Backport of secp256k1 [[bitcoin-core/secp256k1#782 | PR782]]. Includes the missing CTIMETEST variable for s390x. Depends on D7630. Test Plan: Run the Travis build. Reviewers: #bitcoin_abc, deadalnix Reviewed By: #bitcoin_abc, deadalnix Differential Revision: https://reviews.bitcoinabc.org/D7631
Right now travis.sh checks if
VALGRIND
andCTIMETEST
are set or not, but in travis.yml we explictly set them toyes
so I think it's more intuitive to check if they're equal toyes
such that settingCTIMETEST=no
(or anything other than "yes") will disable the test.pointed out by @real-or-random here: #696 (comment)