summaryrefslogtreecommitdiff
path: root/tests/brainstorm-server/start-server.test.sh
AgeCommit message (Collapse)Author
2026-10-23brainstorming: resolve a relative --project-dir before start-server.sh cdsfix/2524-relative-project-dirJesse Vincent
start-server.sh built SESSION_DIR, PID_FILE, LOG_FILE and BRAINSTORM_DIR from --project-dir as given, then ran `cd "$SCRIPT_DIR"` before using them. A relative project dir like `.` was re-rooted at the scripts directory, so the log and pid redirects failed and the server never reported server-started: "Server failed to start within 5 seconds". Resolve the project dir to an absolute path with `mkdir -p` + `cd && pwd` right before deriving the session paths. mkdir -p keeps the existing behavior of creating a project dir that doesn't exist yet (the Windows lifecycle test relies on it), CDPATH is cleared so a relative name can't resolve to some other directory, and `--` covers names starting with a dash. Works on bash 3.2 without realpath or readlink -f. Fixes #2524. Claude-Session: https://claude.ai/code/session_01SHANcr4A71nzuU9et4Fnba
2026-06-16Fix companion test cleanup and argv assertionsDrew Ritter
2026-06-16Harden companion platform testsDrew Ritter
2026-06-16Harden companion Windows lifecycle coverageDrew Ritter