Skip to content

Commit 03c4276

Browse files
Merge branch '3.0'
* 3.0: [appveyor] Exit with failing status code
2 parents 161f12c + 46c0a6a commit 03c4276

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

appveyor.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,10 @@ install:
5252

5353
test_script:
5454
- cd c:\projects\symfony
55+
- Setlocal EnableDelayedExpansion
5556
- SET X=0
5657
- copy /Y c:\php\php.ini-min c:\php\php.ini
57-
- php phpunit symfony --exclude-group benchmark,intl-data || SET X=1
58+
- php phpunit symfony --exclude-group benchmark,intl-data || SET X=!errorlevel!
5859
- copy /Y c:\php\php.ini-max c:\php\php.ini
59-
- php phpunit symfony --exclude-group benchmark,intl-data || SET X=1
60+
- php phpunit symfony --exclude-group benchmark,intl-data || SET X=!errorlevel!
6061
- exit %X%

phpunit

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ if (isset($argv[1]) && 'symfony' === $argv[1]) {
162162

163163
// Fail on any individual component failures but ignore STATUS_STACK_BUFFER_OVERRUN (-1073740791) on Windows when APCu is enabled
164164
if ($procStatus && ('\\' !== DIRECTORY_SEPARATOR || !extension_loaded('apcu') || !ini_get('apc.enable_cli') || -1073740791 !== $procStatus)) {
165-
$exit = 1;
165+
$exit = $procStatus;
166166
echo "\033[41mKO\033[0m $component\n\n";
167167
} else {
168168
echo "\033[32mOK\033[0m $component\n\n";

0 commit comments

Comments
 (0)