home
·
contact
·
privacy
projects
/
ircplom
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
df4c041
)
In tests, automatically call quit steps once end of script reached.
author
Christian Heller
<c.heller@plomlompom.de>
Fri, 24 Oct 2025 18:16:11 +0000
(20:16 +0200)
committer
Christian Heller
<c.heller@plomlompom.de>
Fri, 24 Oct 2025 18:16:11 +0000
(20:16 +0200)
src/ircplom/testing.py
patch
|
blob
|
history
diff --git
a/src/ircplom/testing.py
b/src/ircplom/testing.py
index 62ff9aa9177325182ce60d91920bc17bd8f58a68..e6dc6cd82d878fcdf290b55d42b441ea770cd319 100644
(file)
--- a/
src/ircplom/testing.py
+++ b/
src/ircplom/testing.py
@@
-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: