the simpletest_run_tests() contains a check on the constant variable TEST_RUNNING, and will only run a test if the variable is not set. As this is a constant it can only be set once and, in theory at least, prevents multiple calls to simpletest_run_tests from running in the same page load.

The attached patch converts the constant to a global variable to allow the variable to be reset after the test has completed.

CommentFileSizeAuthor
simpletest_test_running.patch990 byteshadsie

Comments

Rok Žlender’s picture

Status: Needs review » Reviewed & tested by the community

I think this is one is good to go in. I will wait till the end of the weekend and then commit it if nobody comments.

Rok Žlender’s picture

Committed to DRUPAL-5 and HEAD. Thanks

Rok Žlender’s picture

Status: Reviewed & tested by the community » Fixed

Marking as fixed

Anonymous’s picture

Status: Fixed » Closed (fixed)