fix: correct project path in test harness to match CLI default

The test harness used dirs::data_local_dir() (~/.local/share) to compute
the project path, but the CLI defaults to dirs::cache_dir() (~/.cache).
This caused different MD5 hashes for port file lookup, so the test harness
could never find the port file written by the bridge.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Alexander Kiselev
2026-02-05 13:02:58 -08:00
co-authored by Claude Opus 4.6
parent 5b595ab58a
commit 1e0837dd31
+3 -3
View File
@@ -111,9 +111,9 @@ impl DaemonTestHarness {
pub fn new(project: &str, program: &str) -> Result<Self> {
let data_dir = get_unique_data_dir();
// Resolve the project path
let project_path = dirs::data_local_dir()
.context("Could not determine data directory")?
// Resolve the project path (must match CLI's default: cache_dir/ghidra-cli/projects)
let project_path = dirs::cache_dir()
.context("Could not determine cache directory")?
.join("ghidra-cli")
.join("projects")
.join(project);