Commit 33c6131e authored by Jaime RGP's avatar Jaime RGP
Browse files

Raise exception if large differences are observed so simtk.testInstallation...

Raise exception if large differences are observed so simtk.testInstallation can be used in CI testing reliably
parent 90656381
......@@ -91,6 +91,8 @@ def run_tests():
if errorsOk:
print()
print('All differences are within tolerance.')
else:
raise Exception("Large differences observed. See messages above.")
def main():
......@@ -105,7 +107,7 @@ def main():
run_tests()
except Exception as err:
print('Problem with OpenMM installation '
'encountered. OpenMM will not work until the problem '
'encountered. OpenMM will not work correctly until the problem '
'has been fixed.\n\n',
file=sys.stderr)
print('Error message: %s' % str(err), file=sys.stderr)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment