Skip to content

Commit 2b29df2

Browse files
committed
fix(android/workflow): kill mcp test server without process PID
1 parent 925e404 commit 2b29df2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/main.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -213,14 +213,14 @@ jobs:
213213
api-level: 26
214214
arch: ${{ matrix.arch }}
215215
script: |
216-
npx @playwright/mcp@latest --port 8931 --headless & NPX_PID=$!; sleep 15
216+
npx @playwright/mcp@latest --port 8931 --headless & sleep 10
217217
adb root
218218
adb remount
219219
adb push ${{ github.workspace }}/. /data/local/tmp/
220220
adb shell "mv -f /data/local/tmp/sqlite3 /system/xbin"
221221
adb reverse tcp:8931 tcp:8931
222222
adb shell "cd /data/local/tmp && sqlite3 \":memory:\" -cmd \".bail on\" \".load ./dist/mcp\" \"SELECT mcp_version();\" && ./android-test"
223-
kill $NPX_PID
223+
pkill -f "@playwright/mcp"
224224
225225
- name: linux-musl x86_64 test sqlite-mcp
226226
if: matrix.name == 'linux-musl' && matrix.arch == 'x86_64'

0 commit comments

Comments
 (0)