summaryrefslogtreecommitdiffstats
path: root/pts-core/phoronix-test-suite.php
diff options
context:
space:
mode:
authorMichael Larabel <michael@phx-laptop.(none)>2008-11-29 17:56:56 -0500
committerMichael Larabel <michael@phx-laptop.(none)>2008-11-29 17:56:56 -0500
commit1180e121b7e89d66c03e739f76ef9fec7e03a5d5 (patch)
tree4c024102a9b17949e9b0e3f1e85fd41bb233bbbb /pts-core/phoronix-test-suite.php
parentdf552f28054a3291643162838cfae1e7da5574de (diff)
downloadphoronix-test-suite-upstream-1180e121b7e89d66c03e739f76ef9fec7e03a5d5.tar.gz
phoronix-test-suite-upstream-1180e121b7e89d66c03e739f76ef9fec7e03a5d5.tar.xz
phoronix-test-suite-upstream-1180e121b7e89d66c03e739f76ef9fec7e03a5d5.zip
pts-core: Rework the pts_run_option interface to set options to run next
pts-core: Change benchmark option to using the revised pts_run_option interface to avoid double pts-core initalization
Diffstat (limited to 'pts-core/phoronix-test-suite.php')
-rw-r--r--pts-core/phoronix-test-suite.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/pts-core/phoronix-test-suite.php b/pts-core/phoronix-test-suite.php
index 1c5c34a..7cb84c1 100644
--- a/pts-core/phoronix-test-suite.php
+++ b/pts-core/phoronix-test-suite.php
@@ -44,7 +44,11 @@ for($i = 2; $i < $argc; $i++)
array_push($pass_args, $argv[$i]);
}
}
+pts_run_option_next($argv[1], $pass_args, getenv("PTS_COMMAND"));
-pts_run_option_command($argv[1], $pass_args, getenv("PTS_COMMAND")); // Run command
+while(($current_option = pts_run_option_next(false)) != false)
+{
+ pts_run_option_command($current_option->get_command(), $current_option->get_arguments(), $current_option->get_descriptor()); // Run command
+}
?>