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

Description: Phoronix Test Suite open-source benchmarking development
Last Change: Fri 5/17/13 22:52

Recent Commits
Time
Signed-Off By
Description
Commit Diff
Fri 5/17/13 22:52
Michael Larabel  
phodevi: Report CPU... 
Wed 5/15/13 21:50
Michael Larabel  
Phoronix Test Suite... 
Wed 5/15/13 21:39
Michael Larabel  
pts-core: DragonFlyBSD... 
Wed 5/15/13 15:47
Michael Larabel  
pts-core: Updates from... 
Wed 5/15/13 15:43
Michael Larabel  
 
Sat 5/11/13 13:55
Michael Larabel  
pts-core: Fix for... 
 
> --git a/pts-core/objects/client/pts_client.php b/pts-core/objects/client/pts_client.php
index 0abf9b9
..c62fbca 100644
--- a/pts-core/objects/client/pts_client.php
+++ b/pts-core/objects/client/pts_client.php
@@ -1459,+1459,@@ class pts_client
     
}
     public static function 
pts_set_environmental_variable($name$value)
     {
+        
// TODO XXX: rename pts_set_environmental_variable to set_environment_variable
         // Sets an environmental variable
         
return getenv($name) == false && putenv($name '=' $value);
     }
diff --git a/pts-core/objects/client/pts_openbenchmarking_client.php b/pts-core/objects/client/pts_openbenchmarking_client.php
index 4a44b24
..35c828e 100644
--- a/pts-core/objects/client/pts_openbenchmarking_client.php
+++ b/pts-core/objects/client/pts_openbenchmarking_client.php
@@ -198,+198,10 @@ class pts_openbenchmarking_client
     
{
         return isset(
self::$client_settings['AutoUploadResults']) && self::$client_settings['AutoUploadResults'];
     }
+    public static function 
override_client_setting($key$value)
+    {
+        
self::$client_settings[$key] = $value;
+    }
     public static function 
make_openbenchmarking_request($request$post = array())
     {
         
$url pts_openbenchmarking::openbenchmarking_host() . 'f/client.php';
diff --git a/pts-core/objects/client/pts_test_run_manager.php b/pts-core/objects/client/pts_test_run_manager.php
index a4c5377
..482d2aa 100644
--- a/pts-core/objects/client/pts_test_run_manager.php
+++ b/pts-core/objects/client/pts_test_run_manager.php
@@ -297,+297,11 @@ class pts_test_run_manager
         
{
             
$is_reserved_word false;
             
// Be of help to the user by showing recently saved test results
-            self::recently_saved_test_results();
+            if(
$save_name == null)
+            {
+                
self::recently_saved_test_results();
+
+            }

             while(empty(
$save_name) || ($is_reserved_word pts_types::is_test_or_suite($save_name)))
             {
@@ -
1085,+1089,12 @@ class pts_test_run_manager
     
}
     public function 
save_results_prompt()
     {
-        
pts_client::$display->generic_heading('System Information');
-        echo 
'Hardware:' PHP_EOL phodevi::system_hardware(true) . PHP_EOL PHP_EOL;
-        echo 
'Software:' PHP_EOL phodevi::system_software(true) . PHP_EOL PHP_EOL;
+        if((
pts_c::$test_flags pts_c::auto_mode))
+        {
+            
pts_client::$display->generic_heading('System Information');
+            echo 
'Hardware:' PHP_EOL phodevi::system_hardware(true) . PHP_EOL PHP_EOL;
+            echo 
'Software:' PHP_EOL phodevi::system_software(true) . PHP_EOL PHP_EOL;
+        }

         if((
$this->prompt_save_results || $this->force_save_results) && count($this->tests_to_run) > 0// or check for DO_NOT_SAVE_RESULTS == false
         
{
@@ -
1119,19 +1126,22 @@ class pts_test_run_manager
                 
}

                 
// Prompt Description
-                if((pts_c::$test_flags pts_c::auto_mode) && ((pts_c::$test_flags pts_c::batch_mode) || pts_config::read_bool_config('PhoronixTestSuite/Options/BatchMode/PromptForTestDescription''FALSE')))
+                if((
pts_c::$test_flags pts_c::batch_mode) || pts_config::read_bool_config('PhoronixTestSuite/Options/BatchMode/PromptForTestDescription''FALSE'))
                 {
                     if(
$this->run_description == null)
                     {
                         
$this->run_description 'N/A';
                     }

-                    if(
pts_client::read_env('TEST_RESULTS_DESCRIPTION') != null)
+                    if(
pts_client::read_env('TEST_RESULTS_DESCRIPTION'))
                     {
-                        
$this->run_description pts_client::read_env('TEST_RESULTS_DESCRIPTION');
-                        echo 
'Test Description: ' $this->run_description PHP_EOL;
+                        if(
strlen(pts_client::read_env('TEST_RESULTS_DESCRIPTION')) > 1)
+                        {
+                            
$this->run_description pts_client::read_env('TEST_RESULTS_DESCRIPTION');
+                            echo 
'Test Description: ' $this->run_description PHP_EOL;
+                        }
                     }
-                    else
+                    else if((
pts_c::$test_flags pts_c::auto_mode))
                     {
                         
pts_client::$display->generic_heading('If you wish, enter a new description below to better describe this result set / system configuration under test.' PHP_EOL 'Press ENTER to proceed without changes.');
                         echo 
'Current Description: ' $this->run_description PHP_EOL PHP_EOL 'New Description: ';
<
 
Phoronix.com
Linux Driver Forums
Copyright © 2013 by Phoronix Media