mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
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 git-svn-id: https://develop.svn.wordpress.org/trunk@41966 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -65,7 +65,10 @@ if ( ! defined( 'WP_DEFAULT_THEME' ) ) {
|
||||
}
|
||||
$wp_theme_directories = array( DIR_TESTDATA . '/themedir1' );
|
||||
|
||||
system( WP_PHP_BINARY . ' ' . escapeshellarg( dirname( __FILE__ ) . '/install.php' ) . ' ' . escapeshellarg( $config_file_path ) . ' ' . $multisite );
|
||||
system( WP_PHP_BINARY . ' ' . escapeshellarg( dirname( __FILE__ ) . '/install.php' ) . ' ' . escapeshellarg( $config_file_path ) . ' ' . $multisite, $retval );
|
||||
if ( 0 !== $retval ) {
|
||||
exit( $retval );
|
||||
}
|
||||
|
||||
if ( $multisite ) {
|
||||
echo "Running as multisite..." . PHP_EOL;
|
||||
|
||||
Reference in New Issue
Block a user