Fix reporting for tempest
Related-Prod: Prodx-53429
Change-Id: I81bce86ddc030279e98a08a983c18e53a0c671e9
diff --git a/rp_reporter/rp_reporter/batch_reporter.py b/rp_reporter/rp_reporter/batch_reporter.py
index 315e04d..6dad778 100755
--- a/rp_reporter/rp_reporter/batch_reporter.py
+++ b/rp_reporter/rp_reporter/batch_reporter.py
@@ -2,7 +2,6 @@
import random
import click
-import ipdb
import jenkins_jinny.main as jj
import jmespath
import itertools
@@ -325,11 +324,9 @@
case "tempest-runner-k8s":
title = "Tempest"
- test_results_files = [
- file_url
- for file_url in child.get_link_from_description()
- if "tempest_report.xml" in file_url
- ]
+ test_results_files = child.get_link_from_description("tempest_report.xml")
+ if not test_results_files:
+ LOG.error(f"Can't found 'tempest_report.xml' in {child.url}")
image = get_image_from_describe(
job_obj=child,