Skip to content

Commit dff3219

Browse files
committed
Provide bless_tests.patch for failing tests on AppVeyor
In case any tests are failing with the `--bless` option, we provide the resulting `git diff` as artifact. This is particularly helpful for PR authors who don't have a Windows environment at hand. Closes GH-7204.
1 parent 9e1c961 commit dff3219

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

appveyor/test_task.bat

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,10 +112,16 @@ mkdir c:\tests_tmp
112112
set TEST_PHP_JUNIT=c:\junit.out.xml
113113

114114
cd "%APPVEYOR_BUILD_FOLDER%"
115-
nmake test TESTS="%OPCACHE_OPTS% -q --offline --show-diff --show-slow 1000 --set-timeout 120 --temp-source c:\tests_tmp --temp-target c:\tests_tmp %PARALLEL%"
115+
nmake test TESTS="%OPCACHE_OPTS% -q --offline --show-diff --show-slow 1000 --set-timeout 120 --temp-source c:\tests_tmp --temp-target c:\tests_tmp --bless %PARALLEL%"
116116

117117
set EXIT_CODE=%errorlevel%
118118

119119
appveyor PushArtifact %TEST_PHP_JUNIT%
120120

121+
if %EXIT_CODE% GEQ 1 (
122+
git checkout ext\pgsql\tests\config.inc
123+
git diff > bless_tests.patch
124+
appveyor PushArtifact bless_tests.patch
125+
)
126+
121127
exit /b %EXIT_CODE%

0 commit comments

Comments
 (0)