I found out that when calling run_tests like this php /var/www/html/sites/test1.example.com/modules/simpletestauto/run_tests.php the drupal does not know to which site this script belongs so it cannot tell which modules and which settings it must use so this will work.
One way would be wget -O - http://test1.example.com/sites/test1.example.com/modules/simpletestauto/run_tests.php this works but it looks like it can be done differently.

Is there maybe another way of doing this?

Comments

Thomas Ilsche’s picture

Wget is probably the only way, cron also uses it this.

Rok Žlender’s picture

Status: Active » Closed (fixed)

Moved functionality from run_tests to cron hook.