Make WordPress Core


Ignore:
Timestamp:
10/21/2017 02:13:37 PM (7 years ago)
Author:
dd32
Message:

Tests: Return an exit code of 1 in the event that the database server for tests is unavailable.
This allows for automated scripts & test suites to handle the failure of the test suite easier.

Props danielbachhuber
Fixes #41916

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/includes/bootstrap.php

    r41636 r41966  
    6666$wp_theme_directories = array( DIR_TESTDATA . '/themedir1' );
    6767
    68 system( WP_PHP_BINARY . ' ' . escapeshellarg( dirname( __FILE__ ) . '/install.php' ) . ' ' . escapeshellarg( $config_file_path ) . ' ' . $multisite );
     68system( WP_PHP_BINARY . ' ' . escapeshellarg( dirname( __FILE__ ) . '/install.php' ) . ' ' . escapeshellarg( $config_file_path ) . ' ' . $multisite, $retval );
     69if ( 0 !== $retval ) {
     70    exit( $retval );
     71}
    6972
    7073if ( $multisite ) {
Note: See TracChangeset for help on using the changeset viewer.