diff options
Diffstat (limited to '9proc/test/adv_linux_probe.py')
| -rwxr-xr-x | 9proc/test/adv_linux_probe.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/9proc/test/adv_linux_probe.py b/9proc/test/adv_linux_probe.py index aa28cf9..186f008 100755 --- a/9proc/test/adv_linux_probe.py +++ b/9proc/test/adv_linux_probe.py @@ -309,7 +309,7 @@ def attack_probe(ns, server): time.sleep(1.0) ok("no fd leak over 1000 connect/disconnect cycles", fds(s.pid) == f0, (f0, fds(s.pid))) held = [client(s.path, timeout=8) for _ in range(14)] - pl = subprocess.Popen([ns, "--unix", s.path, "--", "sh", "-c", "cat /mnt/9p/build/zig_version; echo; sleep 1000"], + pl = subprocess.Popen([ns, "--unix", s.path, "--mount", "/mnt/9p", "--", "sh", "-c", "cat /mnt/9p/build/zig_version; echo; sleep 1000"], stdout=subprocess.PIPE, stderr=subprocess.PIPE) seen = pl.stdout.readline().strip() ok("9ns mount alongside 14 attached clients", bool(seen), seen) @@ -331,7 +331,7 @@ def attack_probe(ns, server): time.sleep(0.2) ok("attached clients are never evicted by a flood", all(h.path_read([b"build", b"zig_version"]) for h in held)) ok("the 9ns mount survives the flood", pl.poll() is None) - pl2 = subprocess.run([ns, "--unix", s.path, "--", "cat", "/mnt/9p/build/zig_version"], capture_output=True, timeout=30) + pl2 = subprocess.run([ns, "--unix", s.path, "--mount", "/mnt/9p", "--", "cat", "/mnt/9p/build/zig_version"], capture_output=True, timeout=30) ok("a new 9ns mount is refused cleanly while the table is full", pl2.returncode != 0 or bool(pl2.stdout.strip()), pl2.stderr[-100:]) for so in slow: so.close() |
