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

Description: Phoronix Test Suite open-source benchmarking development
Last Change: Tue 4/22/14 15:29

Recent Commits
Time
Signed-Off By
Description
Commit Diff
Tue 4/22/14 15:29
Michael Larabel  
pts-core: Fix for NOT... 
Mon 4/21/14 12:36
Michael Larabel  
pts-core: More new... 
Sat 4/19/14 18:06
Michael Larabel  
phoromatic: Continued... 
Sat 4/19/14 12:56
Michael Larabel  
phoromatic: Add groups... 
Fri 4/18/14 11:23
Michael Larabel  
phodevi: Add GPU usage... 
Wed 12/31/69 19:00
5cc96094d0ca5ff618655eed3c3f7e242634789d  
Merge pull request #20... 
 
> --git a/CHANGE-LOG b/CHANGE-LOG
index eafbdba
..5cb5f98 100644
--- a/CHANGE-LOG
+++ b/CHANGE-LOG
@@ -9,+9,@@ Phoronix Test Suite (Git)
 - 
pts-coreAdd ResultPrecision XML tag to results-parser for setting math precision of decimal points on result (default remains 2)
 - 
pts-coreAdd support for writing to $INSTALL_FOOTNOTE during test installations to report custom footnote on generated graphs
 
pts-coreAdd SuiteSparseTinyXMLDUNE external dependencies
+- pts-coreRefresh OpenBenchmarking.org repository index data file once upon hitting missing test profile
 
pts_GraphImprove precision of increments for graph results with sub-1 values
 
phodeviProtect against "undefined" memory strings from DMI data
 
phodeviAdd Wayland Weston version detection
diff 
--git a/pts-core/objects/pts_openbenchmarking.php b/pts-core/objects/pts_openbenchmarking.php
index ed800e9
..f7943a3 100644
--- a/pts-core/objects/pts_openbenchmarking.php
+++ b/pts-core/objects/pts_openbenchmarking.php
@@ -22,+22,@@

 class 
pts_openbenchmarking
 
{
+    protected static 
$openbenchmarking_index_refreshed false;
+
     public static function 
stats_hardware_list()
     {
         return array(
@@ -
296,+298,@@ class pts_openbenchmarking
             
}

             
$server_index pts_openbenchmarking::make_openbenchmarking_request('repo_index', array('repo' => $repo_name));
+            
self::$openbenchmarking_index_refreshed true;

             if(
json_decode($server_index) != false)
             {
@@ -
318,+321,10 @@ class pts_openbenchmarking
             
}
         }
     }
+    public static function 
openbenchmarking_has_refreshed()
+    {
+        return 
self::$openbenchmarking_index_refreshed;
+    }
     public static function 
linked_repositories()
     {
         
$repos = array('local''pts');
diff --git a/pts-core/objects/pts_test_profile_parser.php b/pts-core/objects/pts_test_profile_parser.php
index eeb618e
..b9f25f8 100644
--- a/pts-core/objects/pts_test_profile_parser.php
+++ b/pts-core/objects/pts_test_profile_parser.php
@@ -29,+29,17 @@ class pts_test_profile_parser
     
{
         if(
strpos($identifier'<?xml version="1.0"?>') === false)
         {
-            
$identifier PTS_IS_CLIENT pts_openbenchmarking::evaluate_string_to_qualifier($identifiertrue'test') : $identifier;
+            if(
PTS_IS_CLIENT)
+            {
+                
$identifier pts_openbenchmarking::evaluate_string_to_qualifier($identifiertrue'test');
+
+                if(
$identifier == false && pts_openbenchmarking::openbenchmarking_has_refreshed() == false)
+                {
+                    
// Test profile might be brand new, so refresh repository and then check
+                    pts_openbenchmarking::refresh_repository_lists(nulltrue);
+                    
$identifier pts_openbenchmarking::evaluate_string_to_qualifier($identifiertrue'test');
+                }
+            }
         }

         
$this->xml_parser = new pts_test_nye_XmlReader($identifier);
<
 
Phoronix.com
Linux Driver Forums
Copyright © 2014 by Phoronix Media