news
Cleanup worktree before temp dir removal
cd "$TEMP_DIR/test-repo" git worktree remove "$TEMP_DIR/test-wt" > /dev/null 2>&1 || true echo "" echo "=== Results: $PASS passed, $FAIL failed ===" if [ "$FAIL" -gt 0 ]; then exit 1 fi ``` - [ ] **Step 3: Make it executable and run it** ```bash chmod +x tests/codex-app-compat/test-environment-detection.sh ./tests/codex-app-compat/test-environment-detection.sh ``` Expected output: 6 passed, 0 failed. - [ ] **Step 4: Commit** ```bash git add tests/codex-app-compat/test-environment-detection.sh git commit -m "test: add environment detection tests for Codex App compat (PRI-823) Tests git-dir vs git-common-dir comparison in normal repo, linked worktree, detached HEAD, and cleanup guard scenarios." ``` ---
← 返回教程列表
AI8899 · 内容仅供学习参考