From 6e1bb00abbe20e2fbc18b9f9420356e9c9bc20f0 Mon Sep 17 00:00:00 2001 From: Rohit Goswami Date: Thu, 26 Nov 2026 08:54:20 +0100 Subject: [PATCH] test(watch): the no-eb-stack case ignores an eb-stack on the caller's PATH The test removes the eb-stack stub and appended the caller's PATH, so a host eb-stack answered in its place; eb-stack 0.3.0 writes rebuild-set schema 4 and the test failed. --- tests/watch.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/watch.rs b/tests/watch.rs index b5799e9e..a29961c9 100644 --- a/tests/watch.rs +++ b/tests/watch.rs @@ -947,7 +947,9 @@ fn watch_adopt_dry_run_removes_work_when_stdout_cannot_be_written() { #[test] fn without_eb_stack_watch_says_what_to_rebuild_and_refuses_to_guess_the_rest() { let t = built(""); - let vars = eessi_vars(&t, "2023.06"); + let mut vars = eessi_vars(&t, "2023.06"); + // An eb-stack on the caller's PATH would answer in place of the removed stub. + vars.push(("PATH", format!("{}:/usr/bin:/bin", t.stubs.display()))); t.eessi_module("CMake", "3.27.6-GCCcore-13.2.0"); std::fs::remove_file(t.stubs.join("eb-stack")).unwrap(); let builds = t.calls("eb");