Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
Signed-off-by: Sayali Gaikawad <[email protected]>
  • Loading branch information
gaiksaya committed Aug 23, 2024
1 parent 59952e6 commit 7979d7a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/validation_workflow/tar/validation_tar.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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")

Expand Down

0 comments on commit 7979d7a

Please sign in to comment.