From 7979d7a90281c972487d644adfaf76abe0e5e704 Mon Sep 17 00:00:00 2001 From: Sayali Gaikawad Date: Thu, 22 Aug 2024 19:12:47 -0700 Subject: [PATCH] fix Signed-off-by: Sayali Gaikawad --- src/validation_workflow/tar/validation_tar.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/validation_workflow/tar/validation_tar.py b/src/validation_workflow/tar/validation_tar.py index 7ec1ef3144..17ae103993 100644 --- a/src/validation_workflow/tar/validation_tar.py +++ b/src/validation_workflow/tar/validation_tar.py @@ -10,6 +10,7 @@ from system.execute import execute from system.process import Process +import shutil from system.temporary_directory import TemporaryDirectory from test_workflow.integ_test.utils import get_password from validation_workflow.api_test_cases import ApiTestCases @@ -55,9 +56,7 @@ def validation(self) -> bool: self.cleanup() raise Exception(f'Not all tests Pass : {counter}') else: - logs = execute('cat ' + os.path.join(self.tmp_dir.path, "opensearch", "logs", "opensearch.log"), ".") - logging.info(logs[1]) - logging.info(logs[2]) + shutil.copy(os.path.join(str(self.tmp_dir.path), "opensearch","logs","opensearch.log"),os.path.join('/tmp', "opensearch.log")) self.cleanup() raise Exception("Cluster is not ready for API test")