File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed
Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change 3939PORT=$(( 8080 + $EXECUTOR_NUMBER ))
4040echo $PORT
4141
42+ echo " " > " ${NC_DATADIR} /nextcloud.log"
4243echo " " > phpserver.log
4344
4445PHP_CLI_SERVER_WORKERS=2 php -S localhost:$PORT -t ../.. & > phpserver.log &
@@ -47,6 +48,14 @@ echo $PHPPID
4748
4849# Output filtered php server logs
4950tail -f phpserver.log | grep --line-buffered -v -E " :[0-9]+ Accepted$" | grep --line-buffered -v -E " :[0-9]+ Closing$" &
51+ LOGPID=$!
52+ echo $LOGPID
53+
54+ function cleanup() {
55+ kill $PHPPID
56+ kill $LOGPID
57+ }
58+ trap cleanup EXIT
5059
5160# The federated server is started and stopped by the tests themselves
5261PORT_FED=$(( 8180 + $EXECUTOR_NUMBER ))
7382vendor/bin/behat --strict --colors -f junit -f pretty $TAGS $SCENARIO_TO_RUN
7483RESULT=$?
7584
76- kill $PHPPID
77-
7885if [ " $INSTALLED " == " true" ]; then
7986
8087 $OCC files_external:delete -y $ID_STORAGE
You can’t perform that action at this time.
0 commit comments