diff options
author | Michael Larabel <michael@phx-laptop.(none)> | 2008-11-29 12:09:16 -0500 |
---|---|---|
committer | Michael Larabel <michael@phx-laptop.(none)> | 2008-11-29 12:09:16 -0500 |
commit | 89998c08bffeb724ec2109b479f96f26a1745ad2 (patch) | |
tree | c174cc74e9af9d1723d00a5a4466763870a7d166 /pts-core/objects/pts_test_result.php | |
parent | 260b513e307a2d87d4ebead3f2cac86544df492a (diff) | |
download | phoronix-test-suite-upstream-89998c08bffeb724ec2109b479f96f26a1745ad2.tar.gz phoronix-test-suite-upstream-89998c08bffeb724ec2109b479f96f26a1745ad2.tar.xz phoronix-test-suite-upstream-89998c08bffeb724ec2109b479f96f26a1745ad2.zip |
pts-core: Add and implement RawString to XML results specification for storing raw result values from all trial runs
Diffstat (limited to 'pts-core/objects/pts_test_result.php')
-rw-r--r-- | pts-core/objects/pts_test_result.php | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/pts-core/objects/pts_test_result.php b/pts-core/objects/pts_test_result.php index 8d9619a..adcc3b9 100644 --- a/pts-core/objects/pts_test_result.php +++ b/pts-core/objects/pts_test_result.php @@ -81,6 +81,14 @@ class pts_test_result { return $this->result_proportion; } + public function get_trial_results() + { + return $this->trial_results; + } + public function get_trial_results_string() + { + return implode(":", $this->get_trial_results()); + } public function get_attribute($name) { if(isset($this->attributes[$name]) && !empty($this->attributes[$name])) @@ -90,6 +98,8 @@ class pts_test_result } public function add_trial_run_result($result) { + $result = trim($result); + if(!empty($result)) { array_push($this->trial_results, $result); |