From b003a799f9b19b3b3c776b8dd893bbfe637ff410 Mon Sep 17 00:00:00 2001 From: Surma Date: Sat, 7 Nov 2026 23:08:25 +0000 Subject: [PATCH] tests: include harness shutdown in the shared executable --- host/tests/{ => it}/harness_shutdown.rs | 4 ++-- host/tests/it/main.rs | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) rename host/tests/{ => it}/harness_shutdown.rs (96%) diff --git a/host/tests/harness_shutdown.rs b/host/tests/it/harness_shutdown.rs similarity index 96% rename from host/tests/harness_shutdown.rs rename to host/tests/it/harness_shutdown.rs index ab7b662..7796d50 100644 --- a/host/tests/harness_shutdown.rs +++ b/host/tests/it/harness_shutdown.rs @@ -33,7 +33,7 @@ async fn shutdown_child() -> anyhow::Result<()> { receiver, concat!( "globalThis.foundationCase = 'shutdown';\n", - include_str!("../js/foundation-test-bundle.js") + include_str!("../../js/foundation-test-bundle.js") ), ) .await?; @@ -79,7 +79,7 @@ fn sigterm_cancels_tool_and_resumes() -> anyhow::Result<()> { )?; let spawn = || { Command::new(std::env::current_exe().unwrap()) - .args(["--exact", "shutdown_child", "--nocapture"]) + .args(["--exact", "harness_shutdown::shutdown_child", "--nocapture"]) .env("SHUTDOWN_WORLD", dir.path()) .stdin(Stdio::null()) .spawn() diff --git a/host/tests/it/main.rs b/host/tests/it/main.rs index 024667e..680a6cf 100644 --- a/host/tests/it/main.rs +++ b/host/tests/it/main.rs @@ -38,6 +38,7 @@ mod goal_questions; mod harness; mod harness_api; mod harness_foundation; +mod harness_shutdown; mod hook; mod hook_api; mod hook_git;