mirror of
https://github.com/chriswritescode-dev/opencode-manager.git
synced 2026-12-06 12:54:20 +01:00
test(e2e): clean up run artifacts after the suite
- server.sh removes e2e/.tmp when the backend exits, forwarding SIGTERM so Playwright's graceful shutdown still applies - a cleanup reporter removes playwright-report and test-results after a passing run; failed runs keep them for debugging and CI upload
This commit is contained in:
1 parent
132176d6f9
commit
0b42f7de97
4 files changed
+35
-5
No files matched your search
+5
-1
@@ -6,6 +6,10 @@ TMP="$ROOT/e2e/.tmp"
|
||||
|
||||
rm -rf "$TMP"
|
||||
mkdir -p "$TMP/home" "$TMP/data" "$TMP/workspace" "$TMP/tmp" "$TMP/run"
|
||||
trap 'rm -rf "$TMP"' EXIT
|
||||
|
||||
cd "$ROOT"
|
||||
exec bun run backend/dist/index.js
|
||||
bun run backend/dist/index.js &
|
||||
BACKEND_PID=$!
|
||||
trap 'kill -TERM "$BACKEND_PID" 2>/dev/null || true' TERM INT
|
||||
wait "$BACKEND_PID" || wait "$BACKEND_PID"
|
||||
Reference in new issue
Block a user