home · contact · privacy
In tests, automatically call quit steps once end of script reached.
authorChristian Heller <c.heller@plomlompom.de>
Fri, 24 Oct 2025 18:16:11 +0000 (20:16 +0200)
committerChristian Heller <c.heller@plomlompom.de>
Fri, 24 Oct 2025 18:16:11 +0000 (20:16 +0200)
src/ircplom/testing.py

index 62ff9aa9177325182ce60d91920bc17bd8f58a68..e6dc6cd82d878fcdf290b55d42b441ea770cd319 100644 (file)
@@ -353,6 +353,8 @@ class _Playbook:
 
     def _play_till_test(self) -> None:
         while True:
+            if self._idx >= len(self._lines_t):
+                self._lines_t += [('', '> /quit'), ('', 'log 0 <..')]
             idx_info, line = self._current_line
             cmd_name, args = self._cmdname_and_args_from(line)
             if self._verbose: