diff options
Diffstat (limited to 'test/e2e_harness.zig')
| -rw-r--r-- | test/e2e_harness.zig | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/e2e_harness.zig b/test/e2e_harness.zig index 9481166e..40209af3 100644 --- a/test/e2e_harness.zig +++ b/test/e2e_harness.zig @@ -108,7 +108,9 @@ pub const Harness = struct { if (unsetenv(name) != 0) _exit(126); // The app is the process this kills and the terminal it hangs // up (deinit): no daemon to fork it off and keep it (daemon.zig). - if (setenv("PARDES_DAEMON", "off", 1) != 0) _exit(126); + // PARDES_HARNESS_DAEMON (tty.zig `privateDaemon`): a daemon of + // the case's own runtime directory, for a pair that is Restored. + if (setenv("PARDES_DAEMON", if (std.mem.span(std.c.getenv("PARDES_HARNESS_DAEMON") orelse "").len > 0) "on" else "off", 1) != 0) _exit(126); _ = execvp(exe, argv.ptr); _exit(127); } |
