Skip to content

Commit

Permalink
libkirk/events: register the event handler for suite_timeout
Browse files Browse the repository at this point in the history
In our testing, we find when suite timeout happened, nothing is printed.
and it confuses us that many tests are skipped but no hint in the log.
We find the handler is there but not registered, so add it there.

With the line added, we'll have the log like below when suite timeout
happened:

Suite 'syscalls' timed out after 3600 seconds.

Signed-off-by: Chunyu Hu <chuhu@redhat.com>
  • Loading branch information
Chunyu-Hu authored and acerv committed Feb 12, 2025
1 parent 8dad37c commit e0d6a2d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions libkirk/ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ def __init__(self, no_colors: bool = False) -> None:
libkirk.events.register("run_cmd_stop", self.run_cmd_stop)
libkirk.events.register("suite_started", self.suite_started)
libkirk.events.register("suite_completed", self.suite_completed)
libkirk.events.register("suite_timeout", self.suite_timeout)
libkirk.events.register("session_warning", self.session_warning)
libkirk.events.register("session_error", self.session_error)
libkirk.events.register("internal_error", self.internal_error)
Expand Down

0 comments on commit e0d6a2d

Please sign in to comment.