diff --git a/core/modules/simpletest/lib/Drupal/simpletest/TestBase.php b/core/modules/simpletest/lib/Drupal/simpletest/TestBase.php index d6ef1762d34f60979930d23e26df90b8b58066d9..b6df34700810310e73e26c74c1d2c94ba90283c1 100644 --- a/core/modules/simpletest/lib/Drupal/simpletest/TestBase.php +++ b/core/modules/simpletest/lib/Drupal/simpletest/TestBase.php @@ -89,7 +89,7 @@ abstract class TestBase { * * @var boolean */ - public $verbose = FALSE; + public $verbose; /** * Incrementing identifier for verbose output filenames. @@ -724,7 +724,11 @@ public function run(array $methods = array()) { $simpletest_config = \Drupal::config('simpletest.settings'); $class = get_class($this); - if ($this->verbose || $simpletest_config->get('verbose')) { + // Unless preset from run-tests.sh, retrieve the current verbose setting. + if (!isset($this->verbose)) { + $this->verbose = $simpletest_config->get('verbose'); + } + if ($this->verbose) { // Initialize verbose debugging. $this->verbose = TRUE; $this->verboseDirectory = PublicStream::basePath() . '/simpletest/verbose';