summaryrefslogtreecommitdiffstatshomepage
path: root/core/scripts/run-tests.sh
diff options
context:
space:
mode:
Diffstat (limited to 'core/scripts/run-tests.sh')
-rwxr-xr-xcore/scripts/run-tests.sh16
1 files changed, 12 insertions, 4 deletions
diff --git a/core/scripts/run-tests.sh b/core/scripts/run-tests.sh
index a1a9d903af03..dd831ee38ad3 100755
--- a/core/scripts/run-tests.sh
+++ b/core/scripts/run-tests.sh
@@ -179,10 +179,18 @@ if (!Composer::upgradePHPUnitCheck(Version::id())) {
echo "\n";
echo "Drupal test run\n\n";
-echo sprintf("Drupal Version: %s\n", \Drupal::VERSION);
-echo sprintf("PHP Version: %s\n", \PHP_VERSION);
-echo sprintf("PHP Binary: %s\n", $php ?? getenv('_'));
-echo sprintf("PHPUnit Version: %s\n", Version::id());
+echo sprintf("Drupal Version: %s\n", \Drupal::VERSION);
+echo sprintf("PHP Version: %s\n", \PHP_VERSION);
+echo sprintf("PHP Binary: %s\n", $php ?? getenv('_'));
+echo sprintf("PHPUnit Version: %s\n", Version::id());
+if ($args['dburl']) {
+ $sut_connection_info = Database::getConnectionInfo();
+ $sut_tasks_class = $sut_connection_info['default']['namespace'] . "\\Install\\Tasks";
+ $sut_installer = new $sut_tasks_class();
+ $sut_connection = Database::getConnection();
+ echo sprintf("Database: %s\n", (string) $sut_installer->name());
+ echo sprintf("Database Version: %s\n", $sut_connection->version());
+}
echo "-------------------------------\n";
echo "\n";