Skip to content

Commit d2f6e3a

Browse files
Merge pull request #28848 from vbotbuildovich/backport-pr-28843-v25.3.x-858
[v25.3.x] test: fix silent ignore of openssl failure
2 parents e4b9d72 + 10e3a6b commit d2f6e3a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/rptest/services/tls.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -355,14 +355,14 @@ def _with_dir(self, *args):
355355

356356
def _exec(self, cmd) -> str:
357357
self._logger.info(f"Running command: {cmd}")
358-
retries = 0
358+
retries = 1
359359
output = None
360-
while retries < 3:
360+
while True:
361361
try:
362362
output = subprocess.check_output(
363363
cmd.split(), cwd=self._dir.name, stderr=subprocess.STDOUT
364364
)
365-
retries = 3 # Stop retry
365+
self._logger.debug(f"openssl output: {output}")
366366
return output.decode("utf-8")
367367
except subprocess.CalledProcessError as e:
368368
self._logger.error(f"openssl error: {e.output}")

0 commit comments

Comments
 (0)