mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-04 17:06:16 +00:00
Solved issue of builds hanging when TesterPlugin fails to load (for example incompatible API version)
This commit is contained in:
Submodule tests/plugins/PocketMine-TesterPlugin updated: 6daeb27e50...c97a9a7db1
@ -34,9 +34,15 @@ else
|
||||
fi
|
||||
|
||||
cp -r tests/plugins/PocketMine-TesterPlugin ./plugins
|
||||
"$PHP_BINARY" src/pocketmine/PocketMine.php --no-wizard --disable-ansi --disable-readline --debug.level=2
|
||||
echo -e "stop\n" | "$PHP_BINARY" src/pocketmine/PocketMine.php --no-wizard --disable-ansi --disable-readline --debug.level=2
|
||||
|
||||
result=$(grep 'TesterPlugin' server.log | grep 'Finished' | grep -v 'PASS')
|
||||
output=$(grep '\[TesterPlugin\]' server.log)
|
||||
if [ "$output" == "" ]; then
|
||||
echo TesterPlugin failed to run tests, check the logs
|
||||
exit 1
|
||||
fi
|
||||
|
||||
result=$(echo "$output" | grep 'Finished' | grep -v 'PASS')
|
||||
if [ "$result" != "" ]; then
|
||||
echo "$result"
|
||||
echo Some tests did not complete successfully, changing build status to failed
|
||||
|
Reference in New Issue
Block a user