smoke-test: docker exec -u developer for runtime deployment checks

Without -u, docker exec runs as root and $HOME expands to /root, so
the test looks for ~/.pi/agent/keybindings.json under /root instead
of /home/developer. install.sh actually deploys correctly — the test
was just probing the wrong home directory.

Match opencode-devbox/scripts/smoke-test.sh's pattern.
This commit is contained in:
2026-05-15 01:01:54 +02:00
parent 5a6721819b
commit e23ee53652
+1 -1
View File
@@ -68,7 +68,7 @@ done
exec_test() {
local label="$1"; local cmd="$2"
if docker exec "$CID" sh -c "$cmd" >/dev/null 2>&1; then
if docker exec -u developer "$CID" sh -c "$cmd" >/dev/null 2>&1; then
printf " ✅ %s\n" "$label"; PASS=$((PASS+1))
else
printf " ❌ %s\n" "$label"; FAIL=$((FAIL+1))