Tests: fixed _check_processes() checks in "--restart" mode.

This commit is contained in:
Andrei Zeliankou
2022-11-15 01:07:41 +00:00
parent bb11ef694c
commit 9ea5ed2813

View File

@@ -574,6 +574,10 @@ def _check_processes():
time.sleep(0.1) time.sleep(0.1)
if option.restart:
assert len(out) == 0, 'all termimated'
return
assert len(out) == 3, 'main, router, and controller expected' assert len(out) == 3, 'main, router, and controller expected'
out = [l for l in out if 'unit: main' not in l] out = [l for l in out if 'unit: main' not in l]