Skip to content

Commit 615e501

Browse files
wsdtclaude
andcommitted
test: derive changed runtime executable from the resolved base
The MA-01 launch-identity test changed `runtime_executable` to the literal `/usr/bin/python3`. On ubuntu-latest `python3` already resolves there, so the "changed" spec equalled the base, prepare reused the handle, and the v0.8.0 tag run failed. Derive a sibling path from the resolved interpreter so the identity differs on every host. Co-Authored-By: Claude Opus 5.5 <[email protected]>
1 parent c4d57a7 commit 615e501

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎crates/semaprax-harness/src/host/tests/ma_lane_m_tests.rs‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,9 @@ fn changed_launch_identity_is_refused_and_identical_identity_reuses() {
4444
let mut env = base.clone();
4545
env.forward_env.insert("EXTRA".into(), "1".into());
4646
let mut rt = base.clone();
47-
rt.runtime_executable = Some(PathBuf::from("/usr/bin/python3"));
47+
// Derived from the resolved base so it differs on every host, including
48+
// one where `python3` already resolves to `/usr/bin/python3`.
49+
rt.runtime_executable = Some(python().with_file_name("python3-changed-identity"));
4850
let mut roots = base.clone();
4951
roots.project_root = fx.root.clone();
5052
for (what, spec) in [

0 commit comments

Comments
 (0)