diff options
author | Michael Larabel <michael@phx-laptop.(none)> | 2008-12-08 08:23:27 -0500 |
---|---|---|
committer | Michael Larabel <michael@phx-laptop.(none)> | 2008-12-08 08:23:27 -0500 |
commit | a2e5b29ccbf3d976d3a9cbd48cc52169b02cacc2 (patch) | |
tree | 29569d78f3f463c5b7c3e9cc33cc59c7d2d6f6ff /pts-core/functions/pts-functions-run.php | |
parent | ce2ac86de2b21184af90be394a262a18f6efc52b (diff) | |
download | phoronix-test-suite-upstream-a2e5b29ccbf3d976d3a9cbd48cc52169b02cacc2.tar.gz phoronix-test-suite-upstream-a2e5b29ccbf3d976d3a9cbd48cc52169b02cacc2.tar.xz phoronix-test-suite-upstream-a2e5b29ccbf3d976d3a9cbd48cc52169b02cacc2.zip |
pts-core: Switch IS_BATCH_MODE from using defines to PTS assignment
functions
Diffstat (limited to 'pts-core/functions/pts-functions-run.php')
-rw-r--r-- | pts-core/functions/pts-functions-run.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pts-core/functions/pts-functions-run.php b/pts-core/functions/pts-functions-run.php index bce9ef2..5315e59 100644 --- a/pts-core/functions/pts-functions-run.php +++ b/pts-core/functions/pts-functions-run.php @@ -27,7 +27,7 @@ function pts_prompt_results_identifier($current_identifiers = null) $RESULTS_IDENTIFIER = null; $show_identifiers = array(); - if(!IS_BATCH_MODE || pts_read_user_config(P_OPTION_BATCH_PROMPTIDENTIFIER, "TRUE") == "TRUE") + if(pts_read_assignment("IS_BATCH_MODE") == false || pts_read_user_config(P_OPTION_BATCH_PROMPTIDENTIFIER, "TRUE") == "TRUE") { if(is_array($current_identifiers) && count($current_identifiers) > 0) { @@ -381,7 +381,7 @@ function pts_prompt_save_file_name($check_env = true, $to_run) } } - if(!IS_BATCH_MODE || pts_read_user_config(P_OPTION_BATCH_PROMPTSAVENAME, "FALSE") == "TRUE") + if(pts_read_assignment("IS_BATCH_MODE") == false || pts_read_user_config(P_OPTION_BATCH_PROMPTSAVENAME, "FALSE") == "TRUE") { $is_reserved_word = pts_is_test($PROPOSED_FILE_NAME) || pts_is_suite($PROPOSED_FILE_NAME); @@ -441,7 +441,7 @@ function pts_promt_user_tags($default_tags = "") { $tags_input = ""; - if(!IS_BATCH_MODE) + if(pts_read_assignment("IS_BATCH_MODE") == false) { echo "\nTags are optional and used on Phoronix Global for making it easy to share, search, and organize test results. Example tags could be the type of test performed (i.e. WINE tests) or the hardware used (i.e. Dual Core SMP).\n\nEnter the tags you wish to provide (separated by commas): "; $tags_input .= fgets(STDIN); |