diff options
author | Michael Larabel <michael@phx-laptop.(none)> | 2008-12-13 20:41:41 -0500 |
---|---|---|
committer | Michael Larabel <michael@phx-laptop.(none)> | 2008-12-13 20:41:41 -0500 |
commit | 2e65795a37b1b59487dc0fe1ad054f8ff9e2edd8 (patch) | |
tree | 41dd03c2a768ac2167bd47310d7373ea1b8cae52 /pts-core/functions/pts-functions_tests.php | |
parent | b9ef7fc0eb260e29b8b07e6085a229c46ffad051 (diff) | |
download | phoronix-test-suite-upstream-2e65795a37b1b59487dc0fe1ad054f8ff9e2edd8.tar.gz phoronix-test-suite-upstream-2e65795a37b1b59487dc0fe1ad054f8ff9e2edd8.tar.xz phoronix-test-suite-upstream-2e65795a37b1b59487dc0fe1ad054f8ff9e2edd8.zip |
pts-core: Add pts-functions_vars.php
Diffstat (limited to 'pts-core/functions/pts-functions_tests.php')
-rw-r--r-- | pts-core/functions/pts-functions_tests.php | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/pts-core/functions/pts-functions_tests.php b/pts-core/functions/pts-functions_tests.php index 42bb551..8b9305f 100644 --- a/pts-core/functions/pts-functions_tests.php +++ b/pts-core/functions/pts-functions_tests.php @@ -261,6 +261,19 @@ function pts_test_installed_checksum_installer($identifier) return $version; } +function pts_input_correct_results_path($path) +{ + // Correct an input path for an XML file + if(strpos($path, "/") === false) + { + $path = SAVE_RESULTS_DIR . $path; + } + if(strpos($path, ".xml") === false) + { + $path = $path . ".xml"; + } + return $path; +} function pts_test_installed_system_identifier($identifier) { // Read installer checksum of installed tests |