Add assert that report after tests exists
Change-Id: If0faac1e7771796e4f337b602e7f3decaac94684
Closed: #PROD-15851
diff --git a/tcp_tests/managers/openstack_manager.py b/tcp_tests/managers/openstack_manager.py
index ebcc574..c09ca70 100644
--- a/tcp_tests/managers/openstack_manager.py
+++ b/tcp_tests/managers/openstack_manager.py
@@ -87,6 +87,8 @@
result = r.execute('find /root -name "report_*.{}"'.format(
file_fromat))
LOG.debug("Find result {0}".format(result))
+ assert len(result['stdout']) > 0, ('No report find, please check'
+ ' if test run was successful.')
file_name = result['stdout'][0].rstrip()
LOG.debug("Found files {0}".format(file_name))
r.download(destination=file_name, target=os.getcwd())