diff --git a/tests/unit_tests/connection.py b/tests/unit_tests/connection.py index 8e43014..a2ba6f5 100644 --- a/tests/unit_tests/connection.py +++ b/tests/unit_tests/connection.py @@ -830,7 +830,7 @@ class CyrusTest(common.Test): _t = "echo trustno1 | saslpasswd2 -c -p -f ${db} -u pyngus user" cmd = Template(_t).substitute(db=db) try: - subprocess.call(args=cmd, shell=True) + subprocess.check_call(args=cmd, shell=True) except: shutil.rmtree(self._conf_dir, ignore_errors=True) self._conf_dir = None