summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--CHANGE-LOG1
-rw-r--r--pts-core/functions/pts-functions-run.php3
2 files changed, 3 insertions, 1 deletions
diff --git a/CHANGE-LOG b/CHANGE-LOG
index d3acbfa..de9eb0a 100644
--- a/CHANGE-LOG
+++ b/CHANGE-LOG
@@ -5,6 +5,7 @@ Phoronix Test Suite
- pts-core: Sort xrandr_available_modes() by pixel count
- pts-core: Add list-all-tests option that is like list-tests but will also list tests that are marked of an EXPERIMENTAL, PRIVATE, BROKEN, or UNVERIFIED state
- pts-core: Add PTS module return response types. First implementation: If a module call returns PTS_MODULE_UNLOAD, it will unload the module midway through the process.
+- pts-core: During the testing process, the test identifier is set to $GLOBALS["TEST_IDENTIFIER"]
- pts: Add j2dbench test profile for a Java OpenGL 2D Microbenchmark (Thanks to Sun Microsystems)
- pts: Switch over rest of graphics suites to using $VIDEO_WIDTH and $VIDEO_HEIGHT
- pts: Add java-opengl test suite for Java OpenGL tests
diff --git a/pts-core/functions/pts-functions-run.php b/pts-core/functions/pts-functions-run.php
index bddf753..fbcc821 100644
--- a/pts-core/functions/pts-functions-run.php
+++ b/pts-core/functions/pts-functions-run.php
@@ -191,7 +191,7 @@ function pts_recurse_call_tests($tests_to_run, $arguments_array, $save_results =
else if($test_type == "TEST")
{
$test_result = pts_run_test($tests_to_run[$i], $arguments_array[$i], $arguments_description[$i]);
-
+ $GLOBALS["TEST_IDENTIFIER"] = null;
// test_result[0] == the main result
if($save_results && count($test_result) > 0 && ((is_numeric($test_result[0]) && $test_result[0] > 0) || (!is_numeric($test_result[0]) && strlen($test_result[0]) > 2)))
@@ -303,6 +303,7 @@ function pts_run_test($test_identifier, $extra_arguments = "", $arguments_descri
}
pts_process_register($test_identifier);
$test_directory = TEST_ENV_DIR . $test_identifier . "/";
+ $GLOBALS["TEST_IDENTIFIER"] = $test_identifier;
pts_module_process("__pre_test_run");
$xml_parser = new tandem_XmlReader(XML_PROFILE_DIR . $test_identifier . ".xml");