aboutsummaryrefslogtreecommitdiffstats
path: root/clean_test_env.sh
diff options
context:
space:
mode:
Diffstat (limited to 'clean_test_env.sh')
-rwxr-xr-xclean_test_env.sh16
1 files changed, 16 insertions, 0 deletions
diff --git a/clean_test_env.sh b/clean_test_env.sh
new file mode 100755
index 0000000..09e0361
--- /dev/null
+++ b/clean_test_env.sh
@@ -0,0 +1,16 @@
+#!/bin/bash
+echo "Cleaning up test environment..."
+
+# Kill neko backend binary if running
+pkill -x "neko" || true
+
+# Kill specific node processes related to vite/playwright
+# We avoid pkill -f node to not kill the agent connection
+pkill -f "vite" || true
+pkill -f "playwright" || true
+
+# Kill anything on ports 4994 and 5173
+fuser -k 4994/tcp || true
+fuser -k 5173/tcp || true
+
+echo "Cleanup complete."