mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-22 00:33:59 +00:00
Fix Travis Test.
This commit is contained in:
parent
e9eaf69a41
commit
f00b52f04d
@ -25,13 +25,17 @@ $server = proc_open(PHP_BINARY . " src/pocketmine/PocketMine.php --no-wizard --d
|
||||
2 => ["pipe", "w"]
|
||||
], $pipes);
|
||||
|
||||
if(!is_resource($server)){
|
||||
die('Failed to create process');
|
||||
}
|
||||
|
||||
fwrite($pipes[0], "version\nmakeserver\nstop\n\n");
|
||||
fclose($pipes[0]);
|
||||
|
||||
while(!feof($pipes[1])){
|
||||
echo fgets($pipes[1]);
|
||||
}
|
||||
|
||||
fclose($pipes[0]);
|
||||
fclose($pipes[1]);
|
||||
fclose($pipes[2]);
|
||||
|
||||
@ -42,4 +46,4 @@ if(count(glob("plugins/DevTools/PocketMine-MP*.phar")) === 0){
|
||||
exit(1);
|
||||
}else{
|
||||
exit(0);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user