Skip to content

Commit

Permalink
pts-core: After running tests, if no browser/display is available, of…
Browse files Browse the repository at this point in the history
…fer to show results via CLI graph/text rendering
  • Loading branch information
michaellarabel committed Aug 23, 2016
1 parent afc3319 commit a6f0208
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
1 change: 1 addition & 0 deletions ChangeLog
Expand Up @@ -3,6 +3,7 @@ PHORONIX TEST SUITE CHANGE-LOG
Phoronix Test Suite (Git)

- pts-core: Add OpenMandriva/urpmi PHP dependency helper to launcher
- pts-core: After running tests, if no browser/display is available, offer to show results via CLI graph/text rendering
- html_results_export: New module exposed via EXPORT_RESULTS_HTML_EMAIL_TO and EXPORT_RESULTS_HTML_FILE_TO env vars for exporting HTML results
- pts_Graph: When highlighting graph values, darken the color rather than use static color

Expand Down
13 changes: 12 additions & 1 deletion pts-core/objects/client/pts_test_run_manager.php
Expand Up @@ -964,7 +964,18 @@ public function post_execution_process()
}
else
{
pts_client::display_web_page(PTS_SAVE_RESULTS_PATH . $this->get_file_name() . '/index.html', null, true, false);
if((pts_client::read_env('DISPLAY') == false && pts_client::read_env('WAYLAND_DISPLAY') == false) && !defined('PHOROMATIC_PROCESS'))
{
$txt_results = pts_user_io::prompt_bool_input('Do you want to view the text results of the testing', false);
if($txt_results)
{
echo pts_result_file_output::result_file_to_text($this->result_file, pts_client::terminal_width());
}
}
else
{
pts_client::display_web_page(PTS_SAVE_RESULTS_PATH . $this->get_file_name() . '/index.html', null, true, false);
}
}
}

Expand Down

0 comments on commit a6f0208

Please sign in to comment.