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
Comment #1
Thomas Ilsche commentedWget is probably the only way, cron also uses it this.
Comment #2
Rok Žlender commentedMoved functionality from run_tests to cron hook.