From d5ad0aafd1cbb7e3282f12d54e8f529295dc5e9e Mon Sep 17 00:00:00 2001 From: turikhay Date: Tue, 5 Nov 2024 02:16:55 +0500 Subject: [PATCH] Revert "fail-fast if one of the servers have crashed" This reverts commit 0eb860a1932fbb319663c98f73d8a834faa0e0f0. --- tests_e2e/run.py | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) diff --git a/tests_e2e/run.py b/tests_e2e/run.py index 166b4e8..9544c70 100755 --- a/tests_e2e/run.py +++ b/tests_e2e/run.py @@ -497,18 +497,6 @@ def save(data): stderr=STDOUT, text=True ) - servers_wait = [ - docker( - [ - 'wait', - server, - ], - stdout=PIPE, - stderr=STDOUT, - text=True - ) for server in servers - ] - servers_failed = False try: while docker_wait.poll() is None: @@ -516,10 +504,6 @@ def save(data): if ch: stdout.buffer.write(ch) stdout.flush() - if any(map(lambda proc: proc.poll() is not None, servers_wait)): - logger.error("One of the servers have failed") - servers_failed = True - break except KeyboardInterrupt: docker_logs.kill() @@ -528,7 +512,7 @@ def save(data): 'down', ]).wait() - if servers_failed or docker_wait.returncode != 0 or int(docker_wait.stdout.read()) != 0: + if docker_wait.returncode != 0 or int(docker_wait.stdout.read()) != 0: logger.error("Failed") exit(1)