commit eb6c511ed04b801e09a7de1ad0d418131e8c9998 Author: Alex Katz Date: Mon Oct 5 10:27:54 2020 +0300 Fix find_msg_in_file method to search in active log file only In the new environment logs are not yet rotated so there is no log.1 file available. Change-Id: Ic8f2e6a372c0ab5989fc2ca3d3beb4478e93063d diff --git a/tobiko/tests/faults/containers/container_ops.py b/tobiko/tests/faults/containers/container_ops.py index ca8e754..44321bb 100644 --- a/tobiko/tests/faults/containers/container_ops.py +++ b/tobiko/tests/faults/containers/container_ops.py @@ -238,7 +238,7 @@ def find_msg_in_file(node, logfile, message, rotated=False): if rotated: suffix = ".1" else: - suffix = "{,.1}" + suffix = "" LOG.debug(f'Searching for {message} in {logfile}{suffix} on {node.name}') result = sh.execute(f'sudo grep -h {message} {logfile}{suffix}', ssh_client=node.ssh_client,