summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/soak.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/test/soak.py b/test/soak.py
index 191408b0..b30254a1 100644
--- a/test/soak.py
+++ b/test/soak.py
@@ -1129,14 +1129,20 @@ def panes_check(run, c):
w = line.split()
if len(w) > 6 and w[0].isdigit():
shown |= {int(x) for x in w[6:] if x.isdigit()}
+ # Serials both (/layout's pane fields and /index's first are pane serials,
+ # never reused): a pane closed and another opened in its slot is no loss.
before = getattr(c, 'shown', None)
+ links_before = getattr(c, 'links_seen', 0)
c.shown = shown
+ c.links_seen = len(c.links())
if before is None:
return
lost = (before - shown) & exist
if lost:
c.lost = getattr(c, 'lost', 0) + len(lost)
- run.breach(f'{c.label}: panes {sorted(lost)} left its view while still open (links {len(c.links())})')
+ rows = [r.decode(errors='replace') for r in index.splitlines() if r.split() and r.split()[0].isdigit() and int(r.split()[0]) in lost]
+ why = 'after a rejoin (its view is new: the known gap)' if c.links_seen > links_before else 'with no rejoin since the last quiet point'
+ run.breach(f'{c.label}: panes {sorted(lost)} left its view while still open, {why}: {rows}')
def view_check(run, c):