diff options
author | Michael Larabel <michael@phx-laptop.(none)> | 2008-04-15 09:33:23 -0400 |
---|---|---|
committer | Michael Larabel <michael@phx-laptop.(none)> | 2008-04-15 09:33:23 -0400 |
commit | 78ecad579b6edb13798b7575b9f89976d114b4ac (patch) | |
tree | 00d3a90a47064311ede16f980416cb639f2cddd4 | |
parent | 7bf2033c6e23fef2413b0bd9824b8fb23e529357 (diff) | |
download | phoronix-test-suite-upstream-78ecad579b6edb13798b7575b9f89976d114b4ac.tar.gz phoronix-test-suite-upstream-78ecad579b6edb13798b7575b9f89976d114b4ac.tar.xz phoronix-test-suite-upstream-78ecad579b6edb13798b7575b9f89976d114b4ac.zip |
Add "initial-config" argument to phoronix-test-suite for overwriting
user-config.xml with a new XML file of all the defaults.
-rwxr-xr-x | phoronix-test-suite | 4 | ||||
-rw-r--r-- | pts-core/pts-run-cmd.php | 5 |
2 files changed, 7 insertions, 2 deletions
diff --git a/phoronix-test-suite b/phoronix-test-suite index 6113c0f..c6dc2fb 100755 --- a/phoronix-test-suite +++ b/phoronix-test-suite @@ -62,8 +62,8 @@ case "${task}" in "remote-comparison") php pts-core/pts-run-cmd.php REMOTE_COMPARISON $2 $3 ;; -"build-php") - echo "TODO: Not Yet Implemented!" +"initial-config") + php pts-core/pts-run-cmd.php INITIAL_CONFIG ;; *) echo "\n=================================" diff --git a/pts-core/pts-run-cmd.php b/pts-core/pts-run-cmd.php index a69ecf2..ca0a854 100644 --- a/pts-core/pts-run-cmd.php +++ b/pts-core/pts-run-cmd.php @@ -148,6 +148,11 @@ switch($COMMAND) } echo "\n"; break; + case "INITIAL_CONFIG": + if(is_file(PTS_USER_DIR . "user-config.xml")) + unlink(PTS_USER_DIR . "user-config.xml"); + pts_user_config_init(); + break; default: echo "Phoronix Test Suite: Internal Error. Not Recognized Command ($COMMAND).\n"; } |