projects / phoronix-test-suite.git / commitdiff
Build Results
 
Summary

Description: Unnamed repository; edit this file to name it for gitweb.
Last Change: Sun 9/5/10 11:56

Recent Commits
Time
Signed-Off By
Description
Commit Diff
Sun 9/5/10 11:56
Michael Larabel  
pts-core: During the... 
Sun 9/5/10 10:31
Michael Larabel  
pts-core: Move... 
Sat 9/4/10 12:24
Michael Larabel  
pts-core: Fix a... 
Mon 8/30/10 20:43
Michael Larabel  
 
Mon 8/30/10 20:37
Michael Larabel  
pts-core: Last minute... 
Sat 8/28/10 12:53
Michael Larabel  
pts-core: Detect if a... 
 
> --git a/CHANGE-LOG b/CHANGE-LOG
index 0736b86
..936cd41 100644
--- a/CHANGE-LOG
+++ b/CHANGE-LOG
@@ -5,+5,@@ Phoronix Test Suite (Git)
 - 
phoromaticAdd phoromatic.clone-results option for cloning test results from a Phoromatic repositorywhen the clone option is enabled from the server side
 
phoromaticAdd 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
+- phoromaticAdd phoromatic.send-message option to send any bits of information to the Phoromatic Server to list in the system warning area for that system
 
ptsDrop 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,+95,@@ 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,+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
<
 
Phoronix.com
Linux Driver Forums
Copyright © 2010 by Phoronix Media