Skip to content

Commit 7d954e6

Browse files
committed
Kill nohup node processes after e2e
1 parent 3c609ed commit 7d954e6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tasks/e2e-kitchensink.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,10 @@ temp_app_path=`mktemp -d 2>/dev/null || mktemp -d -t 'temp_app_path'`
2121

2222
function cleanup {
2323
echo 'Cleaning up.'
24+
ps -ef | grep 'react-scripts' | grep -v grep | awk '{print $2}' | xargs kill -s 9
2425
cd $root_path
25-
rm -rf $temp_cli_path $temp_app_path
26+
# TODO: fix "Device or resource busy" and remove ``|| $CI`
27+
rm -rf $temp_cli_path $temp_app_path || $CI
2628
}
2729

2830
# Error messages are redirected to stderr

0 commit comments

Comments
 (0)