summaryrefslogtreecommitdiffstats
path: root/pts-core/functions
diff options
context:
space:
mode:
Diffstat (limited to 'pts-core/functions')
-rw-r--r--pts-core/functions/pts-functions-install.php7
-rw-r--r--pts-core/functions/pts-functions_tests.php1
2 files changed, 7 insertions, 1 deletions
diff --git a/pts-core/functions/pts-functions-install.php b/pts-core/functions/pts-functions-install.php
index 19ba3c1..d2d08f8 100644
--- a/pts-core/functions/pts-functions-install.php
+++ b/pts-core/functions/pts-functions-install.php
@@ -426,7 +426,12 @@ function pts_install_test($identifier)
pts_user_message($pre_install_message);
- echo pts_call_test_script($identifier, "install", null, TEST_ENV_DIR . $identifier . "/", pts_run_additional_vars($identifier), false);
+ echo $install_log = pts_call_test_script($identifier, "install", null, TEST_ENV_DIR . $identifier . "/", pts_run_additional_vars($identifier), false);
+
+ if(!empty($install_log))
+ {
+ @file_put_contents(TEST_ENV_DIR . $identifier . "/install.log", $install_log);
+ }
pts_user_message($post_install_message);
diff --git a/pts-core/functions/pts-functions_tests.php b/pts-core/functions/pts-functions_tests.php
index 3dd5cd5..750dfe9 100644
--- a/pts-core/functions/pts-functions_tests.php
+++ b/pts-core/functions/pts-functions_tests.php
@@ -125,6 +125,7 @@ function pts_save_result($save_to = null, $save_results = null)
if(getenv("REVERSE_GRAPH_PLOTTING") != false)
{
+ // Plot results in reverse order on graphs if REVERSE_GRAPH_PLOTTING env variable is set
$results_identifiers[$i] = array_reverse($results_identifiers[$i]);
$results_values[$i] = array_reverse($results_values[$i]);
}