summaryrefslogtreecommitdiffhomepage
path: root/test/conftest.py
diff options
context:
space:
mode:
authorAndrei Zeliankou <zelenkov@nginx.com>2022-11-15 01:07:41 +0000
committerAndrei Zeliankou <zelenkov@nginx.com>2022-11-15 01:07:41 +0000
commit9ea5ed2813c7dc57c8997ef21d779baae19d784c (patch)
treec9c2529580ab51c8ed9b081bf4f488f3fd6bdc2d /test/conftest.py
parentbb11ef694ce49343a11bafee836addb6dd125848 (diff)
downloadunit-9ea5ed2813c7dc57c8997ef21d779baae19d784c.tar.gz
unit-9ea5ed2813c7dc57c8997ef21d779baae19d784c.tar.bz2
Tests: fixed _check_processes() checks in "--restart" mode.
Diffstat (limited to '')
-rw-r--r--test/conftest.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/conftest.py b/test/conftest.py
index ac88675a..bf2951db 100644
--- a/test/conftest.py
+++ b/test/conftest.py
@@ -574,6 +574,10 @@ def _check_processes():
time.sleep(0.1)
+ if option.restart:
+ assert len(out) == 0, 'all termimated'
+ return
+
assert len(out) == 3, 'main, router, and controller expected'
out = [l for l in out if 'unit: main' not in l]