diff options
-rw-r--r-- | TYDAL-CHANGE-LOG | 1 | ||||
-rw-r--r-- | pts-core/functions/pts-functions-run.php | 7 |
2 files changed, 8 insertions, 0 deletions
diff --git a/TYDAL-CHANGE-LOG b/TYDAL-CHANGE-LOG index 39edec0..8116d6a 100644 --- a/TYDAL-CHANGE-LOG +++ b/TYDAL-CHANGE-LOG @@ -7,6 +7,7 @@ Phoronix Test Suite (Git) - pts-core: When rendering graph results, report the PTS version number from the results file, not current PTS_VERSION - pts-core: Add support for detecting and reporting the desktop environment / version in use - pts-core: Add support for dynamically loading objects from sub-directories of pts-core/objects/ +- pts-core: Add validate-result mode that PTS test profiles can implement - tandem_XmlReader: Major performance improvements and optimizations - pts_Graph: Various changes to the graphing object diff --git a/pts-core/functions/pts-functions-run.php b/pts-core/functions/pts-functions-run.php index 412d1e5..f4b7978 100644 --- a/pts-core/functions/pts-functions-run.php +++ b/pts-core/functions/pts-functions-run.php @@ -585,6 +585,13 @@ function pts_run_test($test_identifier, $extra_arguments = "", $arguments_descri $test_results = $run_time; } + $validate_result = trim(pts_call_test_script($test_identifier, "validate-result", null, $test_results, $test_extra_runtime_variables_post)); + + if(!empty($validate_result) && !pts_string_bool($validate_result)) + { + $test_results = null; + } + if(!empty($test_results)) { $pts_test_result->add_trial_run_result(trim($test_results)); |