From c20625891cd9cc1055cf2182e6485c8046279315 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Thu, 12 Dec 2019 23:39:58 +0300 Subject: stress_test.py: call check_returncode() --- test/stress_test.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/stress_test.py b/test/stress_test.py index e7386fd..b339f36 100644 --- a/test/stress_test.py +++ b/test/stress_test.py @@ -35,7 +35,9 @@ def timer(description): def run_client(i, client, stdin): with timer(f"Invocation #{i}"): cmd = client.get_command_line() - return subprocess.run(cmd, text=True, input=stdin, capture_output=True) + result = subprocess.run(cmd, text=True, input=stdin, capture_output=True) + result.check_returncode() + return result OPERATORS = '+', '-', '*', '/' MIN_OPERATORS = 10 -- cgit v1.2.3