Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Abort php test server on ctrl+c
Signed-off-by: Vincent Petry <[email protected]>
  • Loading branch information
PVince81 committed Dec 14, 2020
commit beeb36dcef0fc0ed30debc33260ca6ab4e3ffee1
5 changes: 5 additions & 0 deletions tests/integration/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ php -S localhost:8080 -t ${ROOT_DIR} &
PHPPID=$!
echo $PHPPID

# also kill php process in case of ctrl+c
trap 'kill -TERM $PHPPID; wait $PHPPID' TERM

cp -R ./spreedcheats ../../../spreedcheats
${ROOT_DIR}/occ app:enable spreed || exit 1
${ROOT_DIR}/occ app:enable spreedcheats || exit 1
Expand All @@ -24,4 +27,6 @@ kill $PHPPID
${ROOT_DIR}/occ app:disable spreedcheats
rm -rf ../../../spreedcheats

wait $PHPPID

exit $RESULT