Skip to content

Commit

Permalink
pts-core: Formatting changes
Browse files Browse the repository at this point in the history
  • Loading branch information
michaellarabel committed Mar 4, 2014
1 parent 2e5a90c commit c662180
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions pts-core/commands/run_random_tests.php
Expand Up @@ -93,7 +93,15 @@ public static function run($r)
pts_client::$display->generic_sub_heading('Tests To Run: ' . implode(', ', $to_test));

// QUERY FROM OB
$random_titles = array(phodevi::read_property('cpu', 'model') . ' Benchmarks', phodevi::read_property('system', 'operating-system') . ' Benchmarks', phodevi::read_property('system', 'operating-system') . ' Performance', phodevi::read_property('cpu', 'model') . ' Performance', phodevi::read_property('motherboard', 'identifier') . ' On ' . phodevi::read_property('system', 'operating-system'), phodevi::read_property('cpu', 'model') . ' On ' . phodevi::read_property('system', 'operating-system'), phodevi::read_property('system', 'kernel') . ' + ' . phodevi::read_property('system', 'operating-system') . ' Tests');
$random_titles = array(
phodevi::read_property('cpu', 'model') . ' Benchmarks',
phodevi::read_property('system', 'operating-system') . ' Benchmarks',
phodevi::read_property('system', 'operating-system') . ' Performance',
phodevi::read_property('cpu', 'model') . ' Performance',
phodevi::read_property('cpu', 'model') . ' + ' . phodevi::read_property('gpu', 'model') . ' + ' . phodevi::read_property('motherboard', 'identifier'),
phodevi::read_property('motherboard', 'identifier') . ' On ' . phodevi::read_property('system', 'operating-system'),
phodevi::read_property('cpu', 'model') . ' On ' . phodevi::read_property('system', 'operating-system'),
phodevi::read_property('system', 'kernel') . ' + ' . phodevi::read_property('system', 'operating-system') . ' Tests');
shuffle($random_titles);
$title = array_pop($random_titles);

Expand Down Expand Up @@ -139,8 +147,9 @@ public static function run($r)
if($test_run_manager->load_tests_to_run($to_test))
{
// SETUP
$test_run_manager->auto_save_results($title, null, 'Automated open-source benchmarks by the Phoronix Test Suite.', true);
$test_run_manager->auto_save_results($title, null, 'Open-source benchmarks by the Phoronix Test Suite.', true);
$test_run_manager->auto_generate_results_identifier();
echo PHP_EOL;
pts_client::$display->generic_sub_heading('Result File: ' . $test_run_manager->get_file_name());
pts_client::$display->generic_sub_heading('Result Identifier: ' . $test_run_manager->get_results_identifier());

Expand Down

0 comments on commit c662180

Please sign in to comment.