aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2019-12-12 23:39:58 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2019-12-12 23:39:58 +0300
commitc20625891cd9cc1055cf2182e6485c8046279315 (patch)
tree6f2e4c855466a9294a6093d734515b298e71c08f
parentTravis: x86 builds (diff)
downloadmath-server-c20625891cd9cc1055cf2182e6485c8046279315.tar.gz
math-server-c20625891cd9cc1055cf2182e6485c8046279315.zip
stress_test.py: call check_returncode()
Diffstat (limited to '')
-rw-r--r--test/stress_test.py4
1 files changed, 3 insertions, 1 deletions
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