Skip to content

Commit 576cc8d

Browse files
committed
fix(e2e/docker): point log assertion at per-harness tmp path
v0.19.0 moved plugin log writes from `${tmpdir}/magic-context.log` to `${tmpdir}/opencode/magic-context/magic-context.log` (OpenCode) and `${tmpdir}/pi/magic-context/magic-context.log` (Pi) so OpenCode Desktop stops firing permission prompts on log writes. The Docker E2E scripts still asserted against the old flat path, so both harness suites failed at the `magic-context plugin log exists` check on the v0.19.0 tag run. Updates `tests/docker/test-opencode-e2e.sh` and `tests/docker/test-pi-e2e.sh` to use the new paths. No other E2E files referenced the old path.
1 parent bb6e3b3 commit 576cc8d

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

tests/docker/test-opencode-e2e.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ NC='\033[0m'
2121
PASS=0
2222
FAIL=0
2323
DB_PATH="$HOME/.local/share/cortexkit/magic-context/context.db"
24-
PLUGIN_LOG="$(node -e 'console.log(require("os").tmpdir())')/magic-context.log"
24+
PLUGIN_LOG="$(node -e 'console.log(require("os").tmpdir())')/opencode/magic-context/magic-context.log"
2525

2626
check() {
2727
local label="$1"

tests/docker/test-pi-e2e.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ NC='\033[0m'
2121
PASS=0
2222
FAIL=0
2323
DB_PATH="$HOME/.local/share/cortexkit/magic-context/context.db"
24-
PLUGIN_LOG="$(node -e 'console.log(require("os").tmpdir())')/magic-context.log"
24+
PLUGIN_LOG="$(node -e 'console.log(require("os").tmpdir())')/pi/magic-context/magic-context.log"
2525

2626
check() {
2727
local label="$1"

0 commit comments

Comments
 (0)