diff options
Diffstat (limited to 'test/daemon.py')
| -rw-r--r-- | test/daemon.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/test/daemon.py b/test/daemon.py index 52e0bccd..0c4c2f3c 100644 --- a/test/daemon.py +++ b/test/daemon.py @@ -1589,8 +1589,10 @@ def upgrades(old, new): client.write(f'/pane/{shell}/exec', b'Upgrade\n') client.socket.close() client = saying(sock, 'brings the rest back') - kept = root / '.local' / 'share' / 'pardes' / f'pardes-upgrade-{session}.dump' - assert kept.exists(), list((root / '.local' / 'share' / 'pardes').iterdir()) + # The dump stays in the state file, under its label (a second + # upgrade of one pid is `upgrade-<pid>-2`). + kept = client.read('/dumps').decode() + assert any(line.split()[0].startswith(f'upgrade-{session}') for line in kept.splitlines()), kept assert alive(shell_pid) and ppid(shell_pid) == session pids = {p: run(client, p, b'echo $$\n') for p in terminals(client)} adopted = [p for p, out in pids.items() if out.split(b'\n')[1:2] == [str(shell_pid).encode()]] |
