Commit 35a10cb8 authored by Adrian DC's avatar Adrian DC
Browse files

chore: finish #236: improve result text issue raised by SonarQube

parent 6336c46f
Loading
Loading
Loading
Loading
+7 −3
Changes for gitlabci_local/prints/histories.py: 7 added lines, 3 removed lines.
Original line number Diff line number Diff line
@@ -126,9 +126,13 @@ class JobHistory(TimedHistory):
    def footer(self, interrupted: bool) -> None:

        # Result
        result = 'Success in' if self.result else \
                'Interrupted after' if interrupted else \
                'Failure in'
        result: str
        if self.result:
            result = 'Success in'
        elif interrupted:
            result = 'Interrupted after'
        else:
            result = 'Failure in'

        # Footer output
        print(