phyloref / jphyloref

MIT License
0 stars 0 forks source link

Fix bug in return value #67

Closed gaurav closed 4 years ago

gaurav commented 4 years ago

This PR fixes a bug which caused the Test Command to always return an exit code of 0 whether or not the input file passed testing. This PR restores the expected behavior: it returns 0 if all phyloreferences resolved as expected, -1 if no phyloreferences resolved as expected, and the number of failing phyloreferences otherwise.

Should be merged after PR #66.

I'm not sure why automated Travis testing has suddenly stopped working; it looks like Travis is still picking up new pull requests, but their pass/fail status is not being picked up by Github correctly. However, this PR has passed testing as of 6e24c6b: https://travis-ci.org/github/phyloref/jphyloref/builds/686258092