mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-05 09:26:06 +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
|
fi
|
||||||
|
|
||||||
cp -r tests/plugins/PocketMine-TesterPlugin ./plugins
|
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
|
if [ "$result" != "" ]; then
|
||||||
echo "$result"
|
echo "$result"
|
||||||
echo Some tests did not complete successfully, changing build status to failed
|
echo Some tests did not complete successfully, changing build status to failed
|
||||||
|
Reference in New Issue
Block a user