Skip to content

Conversation

@inkarkat
Copy link
Member

@inkarkat inkarkat commented Dec 18, 2024

aggregate-results.sh just reports the execution status, but succeeds in all cases.
The build should fail if there are errors. (This also means that no cleanup runs and the failures can be investigated in more detail.)

Before submitting a pull request, please make sure the following is done:

  • Fork the repository and create your branch from master.
  • If you've added code that should be tested, add tests!
  • Ensure the test suite passes.
  • Lint your code with ShellCheck.
  • Include a human-readable description of what the pull request is trying to accomplish.
  • Steps for the reviewer(s) on how they can manually QA the changes: Make a test fail, run $ make test, observe exit status 1
  • Have a fixes #XX reference to the issue that this pull request fixes.

aggregate-results.sh just reports the execution status, but succeeds in all cases.
The build should fail if there are errors. (This also means that no cleanup runs and the failures can be investigated in more detail.)
@inkarkat inkarkat requested a review from karbassi December 19, 2024 09:42
@hyperupcall
Copy link
Contributor

Kind of surprised that ShellCheck didn't catch the use of -a within [. Otherwise looks good to me

It's not parsed here (from --quiet, as in test-lib.sh), and even exporting it doesn't have any effect, as it's only used when say_color()'s first argument is invalid / empty, which cannot happen due to the defaulting in get_color().
@inkarkat
Copy link
Member Author

@hyperupcall Thanks for reviewing! I have an older shellcheck 0.7.0 on the system that didn't catch the -a. I've fixed that and the all other warnings in that file now.

These make sense in the original context of testing Git commands (that may have external test scripts), but for todo.sh we've never used them, nor are they likely to be useful for this project.
@inkarkat inkarkat merged commit 86a2058 into todotxt:master Dec 26, 2024
2 checks passed
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

Successfully merging this pull request may close these issues.

3 participants