Skip to content
This repository has been archived by the owner on Nov 5, 2022. It is now read-only.

Commit

Permalink
fix(html): Fixed html index rendering bug introduced by recent change.
Browse files Browse the repository at this point in the history
  • Loading branch information
Eric Wiseblatt committed Sep 28, 2018
1 parent acf6400 commit 6848253
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 5 deletions.
6 changes: 5 additions & 1 deletion citest/reporting/html_index_renderer.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,11 @@ def __handle_generic(self, entry):
self.__depth -= 1
if self.__depth == 0:
relation = entry.get('relation')
self.__increment_relation_count(relation)
if self.__in_test:
self.__increment_relation_count(relation)
elif relation is not None:
self.__summary_status = self.__ingest_summary_status(
self.__summary_status, relation)
return

@property
Expand Down
10 changes: 8 additions & 2 deletions citest/reporting/html_index_table_renderer.py
Original file line number Diff line number Diff line change
Expand Up @@ -406,15 +406,21 @@ def __handle_generic(self, entry):
if entry.get('control') == 'END':
# pylint: disable=bad-indentation
self.__depth -= 1
if self.__depth == 0 and self.__in_test:
if self.__depth == 0:
relation = entry.get('relation')
if not self.__in_test:
if relation is not None:
self.__summary_status = self.__ingest_summary_status(
self.__summary_status, relation)
return

passed = 0
failed = 0
error = 0
end_timestamp = entry.get('_timestamp')
secs = (end_timestamp - self.__start_timestamp
if end_timestamp and self.__start_timestamp
else 0)
relation = entry.get('relation')
self.__summary_status = self.__ingest_summary_status(
self.__summary_status, relation)

Expand Down
5 changes: 3 additions & 2 deletions citest/reporting/journal_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
import json
import sys

from citest.base import Journal
from citest.base import Journal, StreamJournalNavigator
from citest.reporting import DumpRenderer


Expand Down Expand Up @@ -243,8 +243,9 @@ def init_argument_parser(self, argparser):

def __call__(self, options):
"""Process command."""
navigator = StreamJournalNavigator.new_from_path(options.path)
processor = DumpRenderer(vars(options))
processor.process(options.path)
processor.process(navigator)
processor.terminate()


Expand Down

0 comments on commit 6848253

Please sign in to comment.