Tests: Don't fail the test in WP_UnitTestCase_Base::skipOnAutomatedBranches()
if Travis environment variables are unavailable, it prevents from running the test locally.
Follow-up to [47000]. See #49050. git-svn-id: https://develop.svn.wordpress.org/trunk@47001 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
d697471bb1
commit
2c15e0c286
@ -191,7 +191,7 @@ abstract class WP_UnitTestCase_Base extends PHPUnit_Framework_TestCase {
|
||||
$travis_pull_request = getenv( 'TRAVIS_PULL_REQUEST' );
|
||||
|
||||
if ( ! $travis_branch || ! $travis_pull_request ) {
|
||||
$this->fail( 'Could not read TRAVIS_BRANCH or TRAVIS_PULL_REQUEST' );
|
||||
return;
|
||||
}
|
||||
|
||||
if ( 'master' !== $travis_branch || 'false' !== $travis_pull_request ) {
|
||||
|
Loading…
Reference in New Issue
Block a user