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

Base mod test harness bug fixes / improvements #1648

Merged
merged 3 commits into from
Jul 19, 2023

Conversation

daviesrob
Copy link
Member

  • Make simple_test_driver.sh better at cleaning up its temporary files
  • Fix bug which made test/base_mods/base-mods.sh always return success
  • Simplify test/test_mod by removing some dead code and writing the output directly instead of via an intermediate buffer.
  • Stop test/test_mod from putting tabs/spaces on the ends of lines, which are annoying if you're using git diff-index --check in a pre-commit hook to catch that sort of thing.

* Remove line from base-mods.sh which caused it to always return
  success.

* Explicitly check for non-zero return from base mod tests that
  are expected to work that way.
Stop test/test_mod from writing trailing whitespace, to make
commiting the outputs easier for developers using pre-commit
checks for whitespace issues.

Remove array `out`, as it's contents were never used, or even set
due to conditionals on argc.  This also allows the output to be
written directly to stdout instead of going through an intermediate
buffer.
@jkbonfield jkbonfield merged commit b9e33b7 into samtools:develop Jul 19, 2023
@daviesrob daviesrob deleted the base_mods_tests branch July 21, 2023 11:27
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.

2 participants