mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-10-04 06:37:06 +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:
@@ -115,6 +115,10 @@ function _wp_die_handler_filter() {
|
||||
return '_wp_die_handler';
|
||||
}
|
||||
|
||||
function _wp_die_handler_filter_exit() {
|
||||
return '_wp_die_handler_exit';
|
||||
}
|
||||
|
||||
function _wp_die_handler_txt( $message, $title, $args ) {
|
||||
echo "\nwp_die called\n";
|
||||
echo "Message : $message\n";
|
||||
@@ -127,6 +131,19 @@ function _wp_die_handler_txt( $message, $title, $args ) {
|
||||
}
|
||||
}
|
||||
|
||||
function _wp_die_handler_exit( $message, $title, $args ) {
|
||||
echo "\nwp_die called\n";
|
||||
echo "Message : $message\n";
|
||||
echo "Title : $title\n";
|
||||
if ( ! empty( $args ) ) {
|
||||
echo "Args: \n";
|
||||
foreach( $args as $k => $v ){
|
||||
echo "\t $k : $v\n";
|
||||
}
|
||||
}
|
||||
exit( 1 );
|
||||
}
|
||||
|
||||
/**
|
||||
* Set a permalink structure.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user