summaryrefslogtreecommitdiffstats
path: root/pts-core/functions/pts-functions_config.php
diff options
context:
space:
mode:
authorMichael Larabel <michael@phx-laptop.(none)>2008-08-24 21:49:35 -0400
committerMichael Larabel <michael@phx-laptop.(none)>2008-08-24 21:49:35 -0400
commit518fca72d5685d9a0b21b62674c93c79ef3c97cd (patch)
tree4bef263ba5ce2f6ce9613a8723a34435b423da99 /pts-core/functions/pts-functions_config.php
parenta4586391341b3b6862bcea11a63e2b216b3fd72c (diff)
downloadphoronix-test-suite-upstream-518fca72d5685d9a0b21b62674c93c79ef3c97cd.tar.gz
phoronix-test-suite-upstream-518fca72d5685d9a0b21b62674c93c79ef3c97cd.tar.xz
phoronix-test-suite-upstream-518fca72d5685d9a0b21b62674c93c79ef3c97cd.zip
pts-core: Add RemoveDownloadFiles to user-config.xml for removing the
originally downloaded files from a test once it has been installed If RemoveDownloadFiles is set to TRUE within the user-config.xml file, once a test has been installed the originally downloaded files for that test will be automatically removed. This conserves disk space but will cause these files to be re-downloaded the next time the test needs to be re-installed. This will also not back up the downloaded files to the Phoronix Test Suite download cache. Enabling this option is just recommended for users with very limited disk space.
Diffstat (limited to 'pts-core/functions/pts-functions_config.php')
-rw-r--r--pts-core/functions/pts-functions_config.php12
1 files changed, 7 insertions, 5 deletions
diff --git a/pts-core/functions/pts-functions_config.php b/pts-core/functions/pts-functions_config.php
index c195986..20c66a5 100644
--- a/pts-core/functions/pts-functions_config.php
+++ b/pts-core/functions/pts-functions_config.php
@@ -91,12 +91,14 @@ function pts_user_config_init($UserName = NULL, $UploadKey = NULL, $BatchOptions
$config->addXmlObject(P_OPTION_GLOBAL_USERNAME, 0, $UserName);
$config->addXmlObject(P_OPTION_GLOBAL_UPLOADKEY, 0, $UploadKey);
- $config->addXmlObject(P_OPTION_TEST_SLEEPTIME, 2, pts_read_user_config(P_OPTION_TEST_SLEEPTIME, "8", $read_config));
+ $config->addXmlObject(P_OPTION_PROMPT_DOWNLOADLOC, 1, pts_read_user_config(P_OPTION_PROMPT_DOWNLOADLOC, "FALSE", $read_config));
+ $config->addXmlObject(P_OPTION_RESULTS_DIRECTORY, 1, pts_read_user_config(P_OPTION_RESULTS_DIRECTORY, "~/.phoronix-test-suite/test-results/", $read_config));
+ $config->addXmlObject(P_OPTION_TEST_ENVIRONMENT, 1, pts_read_user_config(P_OPTION_TEST_ENVIRONMENT, "~/.phoronix-test-suite/installed-tests/", $read_config));
+ $config->addXmlObject(P_OPTION_CACHE_DIRECTORY, 1, pts_read_user_config(P_OPTION_CACHE_DIRECTORY, "~/.phoronix-test-suite/download-cache/", $read_config));
- $config->addXmlObject(P_OPTION_PROMPT_DOWNLOADLOC, 3, pts_read_user_config(P_OPTION_PROMPT_DOWNLOADLOC, "FALSE", $read_config));
- $config->addXmlObject(P_OPTION_RESULTS_DIRECTORY, 3, pts_read_user_config(P_OPTION_RESULTS_DIRECTORY, "~/.phoronix-test-suite/test-results/", $read_config));
- $config->addXmlObject(P_OPTION_TEST_ENVIRONMENT, 3, pts_read_user_config(P_OPTION_TEST_ENVIRONMENT, "~/.phoronix-test-suite/installed-tests/", $read_config));
- $config->addXmlObject(P_OPTION_CACHE_DIRECTORY, 3, pts_read_user_config(P_OPTION_CACHE_DIRECTORY, "~/.phoronix-test-suite/download-cache/", $read_config));
+ $config->addXmlObject(P_OPTION_TEST_REMOVEDOWNLOADS, 2, pts_read_user_config(P_OPTION_TEST_REMOVEDOWNLOADS, "FALSE", $read_config));
+
+ $config->addXmlObject(P_OPTION_TEST_SLEEPTIME, 3, pts_read_user_config(P_OPTION_TEST_SLEEPTIME, "8", $read_config));
$config->addXmlObject(P_OPTION_BATCH_SAVERESULTS, 4, $BatchOptions[0]);
$config->addXmlObject(P_OPTION_BATCH_LAUNCHBROWSER, 4, $BatchOptions[1]);