send_test_request
Definition
send_test_request($node)
simpletestauto.module, line 323
Description
We use xmlrpc call to send node id into testing queue
Parameters
$node Node we wish to send into testing.
Code
<?php
function send_test_request($node) {
// we send test to test server
$server_url = variable_get('simpletestauto_server_url', '$base_url/xmlrpc.php');
$server_pwd = sha1(variable_get('simpletestauto_server_pwd', ''));
$msg = xmlrpc($server_url, 'simpletestautoServer.testPatch', $server_pwd, $node->nid);
if (stristr($msg,'Error')) {
watchdog('simpletestauto', t($msg), 'WATCHDOG_ERROR');
}
else if ($msg) {
//$new_url = url('node/'.$node->nid, NULL, NULL, TRUE);
//drupal_set_message(t('Your patch has been successfully submitted for testing, and will be tested the next time the automated tests run.'));
}
else {
$err_no = xmlrpc_error_msg();
watchdog('simpletestauto', t('There was an error durring your request. Error: ',$err_no), 'WATCHDOG_ERROR');
}
}
?> 