Make WordPress Core

Ticket #43432: 43432.diff

File 43432.diff, 818 bytes (added by soulseekah, 9 years ago)
  • tests/phpunit/includes/bootstrap.php

    diff --git tests/phpunit/includes/bootstrap.php tests/phpunit/includes/bootstrap.php
    index 41f8ea6..5659baa 100644
    if ( ! defined( 'WP_DEFAULT_THEME' ) ) {  
    6767}
    6868$wp_theme_directories = array( DIR_TESTDATA . '/themedir1' );
    6969
    70 system( WP_PHP_BINARY . ' ' . escapeshellarg( dirname( __FILE__ ) . '/install.php' ) . ' ' . escapeshellarg( $config_file_path ) . ' ' . $multisite, $retval );
    71 if ( 0 !== $retval ) {
    72         exit( $retval );
     70if ( '1' !== getenv( 'WP_TESTS_SKIP_INSTALL' ) ) {
     71        system( WP_PHP_BINARY . ' ' . escapeshellarg( dirname( __FILE__ ) . '/install.php' ) . ' ' . escapeshellarg( $config_file_path ) . ' ' . $multisite, $retval );
     72        if ( 0 !== $retval ) {
     73                exit( $retval );
     74        }
    7375}
    7476
    7577if ( $multisite ) {