Skip to content
Snippets Groups Projects
Commit 3577b937 authored by Gabriel Studer's avatar Gabriel Studer
Browse files

slightly simplified check, wether blast executable is available.

parent 815f0dfc
Branches
Tags
No related merge requests found
......@@ -97,12 +97,9 @@ class TestBlastBindings(unittest.TestCase):
if __name__ == "__main__":
# test if blast package is available on system, otherwise ignore tests
try:
blastpath=settings.Locate('blastp')
blastpath=settings.Locate(('blastp','blastall'))
except(settings.FileNotFound):
try:
blastpath=settings.Locate('blastall')
except:
print "Could not find blast executable: ignoring unit tests"
sys.exit(0)
print "Could not find blast executable: ignoring unit tests"
sys.exit(0)
from ost import testutils
testutils.RunTests()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment