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.
| Comment | File | Size | Author |
|---|---|---|---|
| #9 | pifr_remove-verbose-logging-on-exec-success-1347594-9.patch | 2.73 KB | jthorson |
| #8 | pifr_remove-verbose-logging-on-exec-success-1347594-8.patch | 2.73 KB | jthorson |
| #4 | 1347594-4.patch | 2.73 KB | jthorson |
| pifr.do_not_output_core_tests_in_log.patch | 795 bytes | jthorson |
Comments
Comment #1
jthorson commentedCommitted to 6.x-2.x (e166202).
Comment #3
jthorson commentedWe're still getting the full list on (at least) contrib branch tests.
Comment #4
jthorson commentedAttached 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.
Comment #5
rfaySeems 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++
Comment #6
jthorson commentedCommitted to 6.x-2.2 (425cc98).
Comment #7
jthorson commentedReversed commit due to typo in patch.
Comment #8
jthorson commentedRe-rolled, and tested on scratchtestbot.
Comment #9
jthorson commentedQuotes are not my friend tonight. Had the right number this time, but the wrong type.
Comment #10
jthorson commentedCommitted to 6.x-2.x (5cb7ce1).