simpletestauto_server_remove_test
Definition
simpletestauto_server_remove_test($password, $test_instance)
simpletestauto_server.module, line 161
Description
XML-RPC handler used on testserver side. This function marks tests for deletion by putting empty file 'clean' into tests root dir this is later cleaned up by cron run.
Parameters
$password Password which is needed to authenticate that server sending the request is valid.
$instance name of test instance we want to delete
Code
<?php
function simpletestauto_server_remove_test($password, $test_instance) {
watchdog('test_it', "Cleanup request for " . $test_instance, WATCHDOG_NOTICE);
$path = drupal_get_path('module', 'simpletestauto');
if (file_exists("$path/simpletestauto_settings.php")) {
require_once "$path/simpletestauto_settings.php";
}
$test_instance_dir = $simpletest_install_dir . '/' . $test_instance;
fopen($test_instance_dir . '/clean','w');
}
?> 