From 3e3e54372f24f9aca6ed70a073fe310405bd45de Mon Sep 17 00:00:00 2001
From: Xavier Robin <xavier.robin@unibas.ch>
Date: Tue, 23 Jul 2024 11:56:32 +0200
Subject: [PATCH] test: check error code from command

---
 modules/conop/tests/test_complib.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/conop/tests/test_complib.py b/modules/conop/tests/test_complib.py
index 5ffcb5af4..f22332ae8 100644
--- a/modules/conop/tests/test_complib.py
+++ b/modules/conop/tests/test_complib.py
@@ -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):
-- 
GitLab