-
Notifications
You must be signed in to change notification settings - Fork 2.3k
BATS: shellcheck
#2033
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
BATS: shellcheck
#2033
Conversation
be5db58 to
f22362f
Compare
e4db16a to
5992577
Compare
4d838de to
bc27512
Compare
3942841 to
09ee7d0
Compare
2dedae8 to
3a14000
Compare
74a2376 to
8849aa7
Compare
4b296db to
3f57775
Compare
e3a1f51 to
461a4da
Compare
BATS: add `*.bats` to `.gitattributes`
test: don't clobber `$PATH` BATS depends on `$PATH` somehow and if not handled properly, modifying `$PATH` breaks BATS badly. But, it doesn't seem like we have any reason to modify `$PATH` in the first place...so don't. test/svn: don't clobber `$PATH` test/ruby: don't clobber `$PATH` test/search: don't clobber `$PATH`
Make library loading overridable default for all tests, up through "seach".
9043be3 to
6809635
Compare
6809635 to
810c52f
Compare
|
Ok! This one should be good to go. This just does |
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.
As this is only shellcheck changes, in the tests, this is good to merge IMO
Great work @gaelicWizard !
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.
looks good.
Description
As
shellchecksupports BATS syntax, turn it on and use it! And then fix all the tests!Motivation and Context
This is chapter 3 of my BATS adventure. This is for the tests themselves, not the main code/libraries/plugins. This ensures that our tests are working properly.
NOTE: this does NOT enable "strict mode" in BATS, it's still just
shellcheck.How Has This Been Tested?
Lots and lots and lots of
test/run...Types of changes
Checklist:
clean_files.txtand formatted it usinglint_clean_files.sh.