Skip to content
Snippets Groups Projects
Unverified Commit 3e3e5437 authored by Xavier Robin's avatar Xavier Robin
Browse files

test: check error code from command

parent 3a4ded64
No related branches found
No related tags found
No related merge requests found
......@@ -14,7 +14,7 @@ def CreateComplib(compound_dict_path, chemlib_out_path, extra_args=None):
cmd = [chemdict_tool_path, "create", compound_dict_path, chemlib_out_path, "-q"]
if extra_args:
cmd += extra_args
subprocess.run(cmd, stdout=subprocess.PIPE)
subprocess.run(cmd, stdout=subprocess.PIPE, check=True)
class TestCompLib(unittest.TestCase):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment