Summary
Description: Unnamed repository; edit this file to name it for gitweb.
Last Change: Sun 9/5/10 11:56
Recent Commits
>
--git a/CHANGE-LOG b/CHANGE-LOG
index 0736b86..936cd41 100644
--- a/CHANGE-LOG
+++ b/CHANGE-LOG
@@ -5,6 +5,7 @@ Phoronix Test Suite (Git)
- phoromatic: Add phoromatic.clone-results option for cloning test results from a Phoromatic repository, when the clone option is enabled from the server side
- phoromatic: Add phoromatic.system-schedule option for seeing the system's test schedule from the Phoromatic server
- phoromatic: Add phoromatic.system-schedule-today option for seeing the system's test schedule for today from the Phoromatic server
+- phoromatic: Add phoromatic.send-message option to send any bits of information to the Phoromatic Server to list in the system warning area for that system
- pts: Drop MD5 hashes in the wine-* humus tests
Phoronix Test Suite 2.4.0
diff --git a/pts-core/modules/phoromatic.php b/pts-core/modules/phoromatic.php
index 13b90dd..b5527d0 100644
--- a/pts-core/modules/phoromatic.php
+++ b/pts-core/modules/phoromatic.php
@@ -95,7 +95,8 @@ class phoromatic extends pts_module_interface
"upload_results" => "upload_unscheduled_results",
"clone_results" => "clone_results",
"system_schedule" => "system_schedule",
- "system_schedule_today" => "system_schedule_today"
+ "system_schedule_today" => "system_schedule_today",
+ "send_message" => "report_message_to_server"
);
}
@@ -235,6 +236,28 @@ class phoromatic extends pts_module_interface
echo "\n";
}
+ public static function send_message_to_server($msg)
+ {
+ if(!phoromatic::phoromatic_setup_module())
+ {
+ return false;
+ }
+
+ if(empty($msg))
+ {
+ echo "\nPass the message as the first argument.\n";
+ return false;
+ }
+
+ if(self::report_warning_to_phoromatic("MESSAGE: " . implode(' ', $msg)))
+ {
+ echo "\nMessage Sent To Phoromatic Server.\n";
+ }
+ else
+ {
+ echo "\nMessage Failed To Send.\n";
+ }
+ }
//
// Core Functions
<
Copyright © 2010 by Phoronix Media