Improved run-api-tests.sh script to make it compatible with sh

This commit is contained in:
Alejandro Celaya
2022-08-27 09:36:37 +02:00
parent df70810aa6
commit bfbeb7b1fb
5 changed files with 25 additions and 22 deletions

View File

@@ -17,8 +17,9 @@ use function Shlinkio\Shlink\Config\swooleIsInstalled;
use const PHP_SAPI;
$enableSwoole = PHP_SAPI === 'cli' && swooleIsInstalled();
$isTestEnv = env('APP_ENV') === 'test';
$isRR = env('RR_MODE') !== null;
$enableSwoole = PHP_SAPI === 'cli' && ! $isRR && swooleIsInstalled();
return (new ConfigAggregator\ConfigAggregator([
! $isTestEnv