summaryrefslogtreecommitdiffstats
path: root/pts-core/phoronix-test-suite.php
diff options
context:
space:
mode:
authorMichael Larabel <michael@phx-laptop.(none)>2008-11-15 10:04:40 -0500
committerMichael Larabel <michael@phx-laptop.(none)>2008-11-15 10:04:40 -0500
commitef295a3bb23a29dafaaedccdd4a7de8135182873 (patch)
treea779ba167c1ee81648bcd40e435d9a65a8f2ec40 /pts-core/phoronix-test-suite.php
parent60ca7cf2001baa4fc37d54a867751e72571e4079 (diff)
downloadphoronix-test-suite-upstream-ef295a3bb23a29dafaaedccdd4a7de8135182873.tar.gz
phoronix-test-suite-upstream-ef295a3bb23a29dafaaedccdd4a7de8135182873.tar.xz
phoronix-test-suite-upstream-ef295a3bb23a29dafaaedccdd4a7de8135182873.zip
pts-core: Add pts_run_option_command() for modularizing executing PTS
tasks
Diffstat (limited to 'pts-core/phoronix-test-suite.php')
-rw-r--r--pts-core/phoronix-test-suite.php9
1 files changed, 1 insertions, 8 deletions
diff --git a/pts-core/phoronix-test-suite.php b/pts-core/phoronix-test-suite.php
index ca62ef9..6b14eea 100644
--- a/pts-core/phoronix-test-suite.php
+++ b/pts-core/phoronix-test-suite.php
@@ -42,8 +42,6 @@ if(function_exists("pts_module_start_process"))
// Etc
$PTS_GLOBAL_ID = 1;
-pts_set_assignment("COMMAND", getenv("PTS_COMMAND"));
-
$pass_args = array();
for($i = 2; $i < $argc; $i++)
{
@@ -53,11 +51,6 @@ for($i = 2; $i < $argc; $i++)
}
}
-$COMMAND = $argv[1];
-if(is_file("pts-core/options/" . strtolower($COMMAND) . ".php"))
-{
- include_once("pts-core/options/" . strtolower($COMMAND) . ".php");
- eval(strtolower($COMMAND) . "::run(\$pass_args);");
-}
+pts_run_option_command($argv[1], $pass_args, getenv("PTS_COMMAND"));
?>