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 965e688 commit ea2c2a2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/validation_workflow/tar/validation_tar.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,13 +59,13 @@ def validation(self) -> bool:
raise Exception(f'Not all tests Pass : {counter}')
else:
execute('cat ' + os.path.join(self.tmp_dir.path, 'opensearch', 'install.log'), ".")
shutil.copy(os.path.join(self.tmp_dir.path, 'opensearch', 'logs', 'opensearch.log'), os.path.join('/tmp', 'opensearch.log'))
shutil.copy(os.path.join(self.tmp_dir.path, 'opensearch', 'install.log'), os.path.join('/tmp', 'opensearch.log'))
self.cleanup()
raise Exception("Cluster is not ready for API test")

def cleanup(self) -> bool:
try:
shutil.copy(os.path.join(self.tmp_dir.path, 'opensearch', 'logs', 'opensearch.log'), os.path.join('/tmp', 'opensearch.log'))
shutil.copy(os.path.join(self.tmp_dir.path, 'opensearch', 'install.log'), os.path.join('/tmp', 'opensearch.log'))
self.os_process.terminate()
if ("opensearch-dashboards" in self.args.projects):
self.osd_process.terminate()
Expand Down

0 comments on commit ea2c2a2

Please sign in to comment.