Skip to content

Commit ce79356

Browse files
authored
Fix/report filter in frontend (#1331)
1 parent 984f4b6 commit ce79356

5 files changed

Lines changed: 616 additions & 46 deletions

File tree

testplan/testing/base.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,11 @@
3333
RunnableResult,
3434
)
3535
from testplan.common.remote.remote_driver import RemoteDriver
36-
from testplan.common.report import ReportCategories, RuntimeStatus
36+
from testplan.common.report import (
37+
BaseReportGroup,
38+
ReportCategories,
39+
RuntimeStatus,
40+
)
3741
from testplan.common.report import Status as ReportStatus
3842
from testplan.common.utils import interface, strings, validation
3943
from testplan.common.utils.composer import compose_contexts
@@ -558,7 +562,9 @@ def end_span_and_timer(self, timer_key: str, span_key: str) -> None:
558562
tracing.end_span(span, end_time=end_time)
559563

560564
def _get_error_logs(self) -> Optional[List[Dict[str, Any]]]:
561-
if "run_tests" in self.result.step_results:
565+
if "run_tests" in self.result.step_results and isinstance(
566+
self.result.step_results["run_tests"], BaseReportGroup
567+
):
562568
return [
563569
log
564570
for log in self.result.step_results["run_tests"].flattened_logs

0 commit comments

Comments
 (0)