From 70de5ec5ff3dad01afcc45244ad5e5a481486da6 Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Thu, 29 Oct 2026 17:01:35 -0300 Subject: dump: one walker dump of the whole session, by name across builds, for Restore, -l, Handover and the store; dump.zig's hand-written schema gone A dump is walk.zig's walk of the core with a table of every type it reaches (fields, enum and union names, number widths), read back by name; terminals are ghostty's snapshot (screens, history, kitty images); a failed load frees what it made. Co-Authored-By: Claude Opus 5.5 --- test/fs.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'test/fs.py') diff --git a/test/fs.py b/test/fs.py index e351d295..473036ec 100644 --- a/test/fs.py +++ b/test/fs.py @@ -1439,10 +1439,9 @@ def test(binary, quic=False): # The new log names its panes, then where they came from. log = restored.read('/log') assert b'\nrestore ' + str(saved).encode() + b'\n' in log, log - # then which serial each pane had: restored - assert (b'\n'.join(b'restored %d %d' % (old, new) for old, new in zip(sorted(old_ids), sorted(int(r.split()[0]) for r in restored.read('/index').splitlines()))) + b'\nrestoredcol ') in log, log + # Its panes are the dump's, their serials too. restored_ids = [int(row.split()[0]) for row in restored.read('/index').splitlines()] - assert len(restored_ids) == 2 and old_ids.isdisjoint(restored_ids), restored_ids + assert len(restored_ids) == 2 and set(restored_ids) == old_ids, restored_ids file_id, control_id = restored_ids contents = restored.read(f'/pane/{file_id}/body') assert contents == b'dumped state\n', (contents, saved.read_text(), restored.read('/index')) -- cgit v1.3