Currently, every test log includes a complete list of drupal tests at the bottom, added by the following code:

    // Get test info for use by test_info_parse().
    if (!$this->exec(PIFR_CLIENT_PHP . ' ./' . $run_tests . ' --php ' . PIFR_CLIENT_PHP . ' --url ' . $url . ' --list')) {
      $this->set_error(array('@reason' => t('failed attempting to get list of tests from run-tests.sh')));
      return;
    }

I don't understand why this is here, or what test_info_parse() actually does (or whether it's even needed) ... but it seems to me that this each test should logically only care about the tests it's executing.

The following patch adds the $test_list variable to the command being executed, which should limit the output to only those tests which are relevant to the run.

Comments

jthorson’s picture

Status: Needs review » Fixed

Committed to 6.x-2.x (e166202).

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

jthorson’s picture

Status: Closed (fixed) » Needs work

We're still getting the full list on (at least) contrib branch tests.

jthorson’s picture

Title: Only include relevant tests in run_tests --list output » Remove verbose logging on successful 'exec' calls
Status: Needs work » Needs review
StatusFileSize
new2.73 KB

Attached patch removes the extra verbosity when 'exec' calls are successful, but allows this to be over-ridden via an added parameter on the actual exec definition. This parameter is used to keep successful output of the actual run-tests.sh run in the log, while stripping out extra gunk such as the run-tests.sh --list output.

rfay’s picture

Seems ok to me. And of course, since you've fixed so *very* many things, the need for extensive instrumentation is not crying out so loudly.

jthorson++

jthorson’s picture

Status: Needs review » Fixed

Committed to 6.x-2.2 (425cc98).

jthorson’s picture

Status: Fixed » Needs work

Reversed commit due to typo in patch.

jthorson’s picture

Re-rolled, and tested on scratchtestbot.

jthorson’s picture

Quotes are not my friend tonight. Had the right number this time, but the wrong type.

jthorson’s picture

Status: Needs work » Fixed

Committed to 6.x-2.x (5cb7ce1).

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.