mirror of
https://github.com/encounter/ghidra-cli.git
synced 2026-07-10 03:18:56 -07:00
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:
co-authored by
Claude Opus 4.6
parent
5b595ab58a
commit
1e0837dd31
+3
-3
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user