Skip to content

Commit

Permalink
Use new --bless option of run-tests.php
Browse files Browse the repository at this point in the history
  • Loading branch information
cmb69 committed Jul 17, 2021
1 parent bf979a4 commit 722a2ad
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions appveyor/test_task.bat
Original file line number Diff line number Diff line change
Expand Up @@ -112,15 +112,14 @@ mkdir c:\tests_tmp
set TEST_PHP_JUNIT=c:\junit.out.xml

cd "%APPVEYOR_BUILD_FOLDER%"
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%"
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%"

set EXIT_CODE=%errorlevel%

appveyor PushArtifact %TEST_PHP_JUNIT%

if %EXIT_CODE% GEQ 1 (
git checkout .
nmake run ARGS="scripts\dev\bless_tests.php ."
git diff > bless_tests.patch
appveyor PushArtifact bless_tests.patch
)
Expand Down
2 changes: 1 addition & 1 deletion scripts/dev/bless_tests.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
$phpt = file_get_contents($path);
$out = file_get_contents($outPath);

if (false !== strpos($phpt, '--XFAIL--') || preg_match('/die\([\'"]xfail/', $phpt)) {
if (false !== strpos($phpt, '--XFAIL--')) {
// Don't modify expected output of XFAIL tests
continue;
}
Expand Down

0 comments on commit 722a2ad

Please sign in to comment.