diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2019-12-12 23:39:58 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2019-12-12 23:39:58 +0300 |
commit | c20625891cd9cc1055cf2182e6485c8046279315 (patch) | |
tree | 6f2e4c855466a9294a6093d734515b298e71c08f /test | |
parent | Travis: x86 builds (diff) | |
download | math-server-c20625891cd9cc1055cf2182e6485c8046279315.tar.gz math-server-c20625891cd9cc1055cf2182e6485c8046279315.zip |
stress_test.py: call check_returncode()
Diffstat (limited to 'test')
-rw-r--r-- | test/stress_test.py | 4 |
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 |