summaryrefslogtreecommitdiffstats
path: root/pts-core/functions/pts-functions_tests.php
diff options
context:
space:
mode:
authorMichael Larabel <michael@phx-laptop.(none)>2008-11-26 17:28:55 -0500
committerMichael Larabel <michael@phx-laptop.(none)>2008-11-26 17:28:55 -0500
commit0c978c06fdc9fa972126f5700c9ee9df1c272636 (patch)
tree7fc43ae7f652d4cfa3f88a0800d063a48de4771f /pts-core/functions/pts-functions_tests.php
parent1d30b6be64511c622e2a4f7b6339e8fa94052df8 (diff)
downloadphoronix-test-suite-upstream-0c978c06fdc9fa972126f5700c9ee9df1c272636.tar.gz
phoronix-test-suite-upstream-0c978c06fdc9fa972126f5700c9ee9df1c272636.tar.xz
phoronix-test-suite-upstream-0c978c06fdc9fa972126f5700c9ee9df1c272636.zip
pts-core: When rendering graph results, report the PTS version number
from the results file, not current PTS_VERSION
Diffstat (limited to 'pts-core/functions/pts-functions_tests.php')
-rw-r--r--pts-core/functions/pts-functions_tests.php10
1 files changed, 9 insertions, 1 deletions
diff --git a/pts-core/functions/pts-functions_tests.php b/pts-core/functions/pts-functions_tests.php
index 09a8ebd..8cf6669 100644
--- a/pts-core/functions/pts-functions_tests.php
+++ b/pts-core/functions/pts-functions_tests.php
@@ -65,7 +65,15 @@ function pts_save_result($save_to = null, $save_results = null)
}
$xml_reader = new tandem_XmlReader($save_results);
+
+ $results_pts_version = $xml_reader->getXMLValue(P_RESULTS_SYSTEM_PTSVERSION);
$results_suite_name = $xml_reader->getXMLValue(P_RESULTS_SUITE_NAME);
+
+ if(empty($results_pts_version))
+ {
+ $results_pts_version = PTS_VERSION;
+ }
+
$results_name = $xml_reader->getXMLArrayValues(P_RESULTS_TEST_TITLE);
$results_testname = $xml_reader->getXMLArrayValues(P_RESULTS_TEST_TESTNAME);
$results_version = $xml_reader->getXMLArrayValues(P_RESULTS_TEST_VERSION);
@@ -132,7 +140,7 @@ function pts_save_result($save_to = null, $save_results = null)
$t->loadGraphIdentifiers($results_identifiers[$i]);
$t->loadGraphValues($results_values[$i]);
$t->loadGraphProportion($results_proportion[$i]);
- $t->loadGraphVersion(PTS_VERSION);
+ $t->loadGraphVersion($results_pts_version);
$t->add_user_identifier("Test", $results_testname[$i]);
$t->add_user_identifier("Identifier", $results_suite_name);