Closed (fixed)
Project:
Drupal core
Version:
7.x-dev
Component:
simpletest.module
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
19 Feb 2009 at 23:32 UTC
Updated:
6 Mar 2009 at 03:40 UTC
Jump to comment: Most recent file
Comments
Comment #1
boombatower commentedUpdated to make it re-usable. (simpletest.module/run-tests.sh patch to follow).
Comment #2
boombatower commentedCondition was backwards. (won't show up in tests...since minor user message meant for dev.)
Comment #3
boombatower commentedPer chx's review.
Comment #4
chx commentedRight.
Comment #5
boombatower commentedDescription:
The run-tests.sh script ignores the variable
simpletest_clear_resultsand removes the SimpleTest test results regardless of its value, where as SimpleTest.module follows the condition.This patch creates a common function that both places call which follows the condition.
This is necessary for PIFR 2.x because it will read results directly out of database.
Comment #6
webchickDiscussed with chx and boombatower in #drupal. We have a variable called 'simpletest_clear_results' which will leave the old testing results in the database (by design) if set to false. This data can be used by the testing bot to retrieve a list of the specific tests that failed. However, since the testing bot runs run-tests.sh and not the browser-based SimpleTest, it failed to respect this setting and cleared the tables regardless.
Straight-forward patch, has approval from both testing system maintainers. Committed to HEAD. Thanks!