Commit a02cce5
committed
test_common(fix[logging]): filter pre-execution records by absence of tmux_exit_code
why: The previous filter hasattr(r, "tmux_cmd") matched both pre and
post execution log records. If pre-execution logging broke, the test
would silently pass using the post-execution record.
what:
- Add not hasattr(r, "tmux_exit_code") to the filter predicate
- Pre-execution records have tmux_cmd but not tmux_exit_code
- Post-execution records have both, so they are excluded1 parent 84d69c8 commit a02cce5
1 file changed
Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
519 | 519 | | |
520 | 520 | | |
521 | 521 | | |
522 | | - | |
| 522 | + | |
| 523 | + | |
| 524 | + | |
| 525 | + | |
| 526 | + | |
523 | 527 | | |
524 | 528 | | |
0 commit comments