diff options
author | Michael Larabel <michael@phx-laptop.(none)> | 2008-11-27 12:01:49 -0500 |
---|---|---|
committer | Michael Larabel <michael@phx-laptop.(none)> | 2008-11-27 12:01:49 -0500 |
commit | 4546c7cc33af8ed9699f81756a1e27add5e3f1b4 (patch) | |
tree | 2fd334744fc1da1972118256a9dd7d129817e497 /pts-core | |
parent | 41c3d53a7f3e5bd1f62164e927fd77ef92f3de59 (diff) | |
download | phoronix-test-suite-upstream-4546c7cc33af8ed9699f81756a1e27add5e3f1b4.tar.gz phoronix-test-suite-upstream-4546c7cc33af8ed9699f81756a1e27add5e3f1b4.tar.xz phoronix-test-suite-upstream-4546c7cc33af8ed9699f81756a1e27add5e3f1b4.zip |
pts-core: Add validate-result mode that PTS test profiles can implement
Diffstat (limited to 'pts-core')
-rw-r--r-- | pts-core/functions/pts-functions-run.php | 7 |
1 files changed, 7 insertions, 0 deletions
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)); |