Skip to content

ConsoleSummary not handeling skipped phases? #982

@amundgr

Description

@amundgr

I might just misunderstand the workflow, but I have a problem where the ConsoleSummary object crashes when I have a skipped phase.

I have a test phase that does not apply to all devices and I therefore have a conditional SKIP to hinder the phase to be run on these devices. Because of this, it seems like no outcome details are stored from the phase and I therefor get an IndexError in the ConsloeSummary when it tries to access these in line 73.

68        if not phase_result:  # Timeout.
69          output_lines.append('timeout phase: %s [ran for %.2f sec]' %
70                              (phase.name, phase_time_sec))
71        elif 'CONTINUE' not in str(phase_result):  # Exception.
72          output_lines.append('%sexception type: %s' %
73                              (self.indent, record.outcome_details[0].code))

Am I misusing the SKIP phase result or should this be handled by the ConsloeSummary?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions