diff --git a/scripts/scenarios/start-app.ts b/scripts/scenarios/start-app.ts index 63f9cb9ddd..739b91b0cc 100644 --- a/scripts/scenarios/start-app.ts +++ b/scripts/scenarios/start-app.ts @@ -1,4 +1,5 @@ #!/usr/bin/env node +import { execFileSync } from "node:child_process"; // The app command of e2e.config.ts: starts the dev stack of the checkout it runs in on a fresh // T3 home. e2e stops it with a signal, which ends the scope and the processes it started. import * as NodeCrypto from "@effect/platform-node/NodeCrypto"; @@ -126,6 +127,9 @@ const startApp = Effect.fn("startApp")(function* (input: { const checkout = yield* HostProcess.WorkingDirectory; const hostEnvironment = yield* HostProcess.Environment; yield* prepareHome(input.home); + if (hostEnvironment.PROOF_PREPARE_GROW && hostEnvironment.PROOF_MEMORY_STATE) { + execFileSync("sudo", ["-n", "python3", hostEnvironment.PROOF_PREPARE_GROW, hostEnvironment.PROOF_MEMORY_STATE]); + } const env = { ...hostEnvironment, PATH: `${path.join(input.home, "bin")}:${hostEnvironment.PATH ?? ""}`,