summaryrefslogtreecommitdiffstats
path: root/pts-core/functions/pts-functions_config.php
diff options
context:
space:
mode:
authorMichael Larabel <Michael AT phoronix.com>2008-05-15 16:45:31 -0400
committerMichael Larabel <Michael AT phoronix.com>2008-05-15 16:45:31 -0400
commitddd593725828605863700c9ea398eec18ccfb16e (patch)
tree63c374eadf6427df83e22a621453be9a1cc1f687 /pts-core/functions/pts-functions_config.php
parentd36b40c63cd9dead407d18d8ccbbc2538c16f634 (diff)
downloadphoronix-test-suite-upstream-ddd593725828605863700c9ea398eec18ccfb16e.tar.gz
phoronix-test-suite-upstream-ddd593725828605863700c9ea398eec18ccfb16e.tar.xz
phoronix-test-suite-upstream-ddd593725828605863700c9ea398eec18ccfb16e.zip
When downloading test files, first download to the PTS_TEMP_DIR and
perform all verification in this area. Only move file to the test environment directory once the file is verified. Addresses issues of PTS thinking file is verified if user closes window prematurely.
Diffstat (limited to 'pts-core/functions/pts-functions_config.php')
-rw-r--r--pts-core/functions/pts-functions_config.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/pts-core/functions/pts-functions_config.php b/pts-core/functions/pts-functions_config.php
index f8f1aa6..1e06820 100644
--- a/pts-core/functions/pts-functions_config.php
+++ b/pts-core/functions/pts-functions_config.php
@@ -12,6 +12,8 @@ function pts_config_init()
{
if(!is_dir(PTS_USER_DIR))
mkdir(PTS_USER_DIR);
+ if(!is_dir(PTS_TEMP_DIR))
+ mkdir(PTS_TEMP_DIR);
pts_user_config_init();
pts_graph_config_init();