Currently, D8 tests have all sorts of verbose messages included, which is causing tests to reach the max assertion limit and hiding certain failures.

PIFR attempts to turn off verbose mode using direct database manipulation (simulating a variable_set()).

We now need to use CMI approaches to set this ... but with D6 functions. (ugh.)

Suggested approach is to write $conf['simpletest.settings']['verbose'] = 0 to settings.php on any D8 checkout.

Alternatively, we could try and find the simpletest.settings.yml file and edit it there, which will have to occur after simpletest is installed. The file will be located in a directory with a random component to the name, and settings.php will contain information regarding where that directory exists.

CommentFileSizeAuthor
#1 pifr_config.patch1.82 KBjthorson
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

jthorson’s picture

FileSize
1.82 KB

Patch attached.

jthorson’s picture

Okay ... need to move the commands out of the if () condition, for starters.

But also, the settings.php file has read permissions only, so opening for append presumably fails. I say presumably, because I'm not seeing the error that I expect to see dumped in the apache logs ... but the variable doesn't get written to the file.

Berdir’s picture

+++ b/review/drupal/pifr_drupal.client.incundefined
@@ -357,4 +357,27 @@ class pifr_client_review_pifr_drupal extends pifr_client_review {
+  protected function conf_set($setting, $name, $value) {
+    // Prepare the string
+    if (is_int($value)) {
+      $string = "\n" . '$conf' . "['$setting']['$name'] = $value;\n";
+    }
+    else {
+      $string = "\n" . '$conf' . "['$setting']['$name'] = '$value';\n";

If you want a re-usable function, it probably makes more sense to use something like array $settings_keys and then loop over it/implode it.

To override e.g. config('simpletest.settings')->get('something.bla'); the $conf syntax would be $conf['simpletest.settings']['something']['bla'].

Also not sure about function name, config_write_override() or something like that would be a bit more self-speaking, I also have an issue to rename $conf to $config_override.

Berdir’s picture

Issue summary: View changes

Changed settings.local.php to settings.php

isntall’s picture

Project: Drupal.org Testbots » DrupalCI: Drupal.org Testing Infrastructure
Issue summary: View changes
Mixologic’s picture

Project: DrupalCI: Drupal.org Testing Infrastructure » DrupalCI: Test Runner
Component: Code » Jobs and Job Handling
Mixologic’s picture

Status: Active » Closed (outdated)

I dont think theres any additional verbosity that can come out of run-tests.sh that isnt currently being provided. Marking this closed.