diff options
Diffstat (limited to 'test/daemon.py')
| -rw-r--r-- | test/daemon.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/test/daemon.py b/test/daemon.py index a2a6ae33..9bd0f2cc 100644 --- a/test/daemon.py +++ b/test/daemon.py @@ -1321,8 +1321,12 @@ def far_exec(old, new): wait_for('the session exec\'d', lambda: sock.stat().st_ino != ino, timeout=60) nine = reconnect(sock) wait_for('the far client on the new build', lambda: exe_of(c.pid) == (str(binary), True), timeout=30) - assert b'PARDES_REPLICA_FAR=1' in open(f'/proc/{c.pid}/environ', 'rb').read().split(b'\0') if procfs else True wait_for('the terminal entered again', lambda: t.text().rfind(b'\x1b[?1049h') > t.text().rfind(b'\x1b[?1049l') > mark, timeout=30) + # Its environment read once the new image runs (it entered the + # screen): an exec names the new file in /proc/PID/exe before it has + # written where the environment is, and a read between gets nothing + # (two CPUs: 170 execs of 200 read so). + assert b'PARDES_REPLICA_FAR=1' in open(f'/proc/{c.pid}/environ', 'rb').read().split(b'\0') if procfs else True seen = len(checks(check)) key(b'j') wait_for('its key stepped after', lambda: agreed(check, seen + 1), timeout=30) |
