aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLiam McLoughlin <hexxeh@hexxeh.net>2011-07-08 19:47:07 +0100
committerLiam McLoughlin <hexxeh@hexxeh.net>2011-07-08 19:47:07 +0100
commit6e55dab2366ee4acb427837496261478c76e35e6 (patch)
treecfeae4834d4cf42464c1424d0cc50162577c5c94 /client.php
parentDelete config after the build has finished in daemon (diff)
downloadgentoaster-6e55dab2366ee4acb427837496261478c76e35e6.tar.gz
gentoaster-6e55dab2366ee4acb427837496261478c76e35e6.tar.bz2
gentoaster-6e55dab2366ee4acb427837496261478c76e35e6.zip
Changed Gearman test client to accept config path as an argument, added waiting case in status checker
Diffstat (limited to 'client.php')
-rw-r--r--client.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/client.php b/client.php
index b289a34..ec7e354 100644
--- a/client.php
+++ b/client.php
@@ -3,12 +3,14 @@
// Gentoaster build daemon client
// Licensed under GPL v3, see COPYING file
+ if(!isset($argv[1])) die("No config file provided\n");
+
$client= new GearmanClient();
$client->addServer();
echo "Sending job\n";
- $handle = $client->doBackground("invoke_image_build", file_get_contents("configs/crashtest.ini"));
+ $handle = $client->doBackground("invoke_image_build", file_get_contents($argv[1]));
$handlehash = md5($handle);
echo "Job sent, handle was ".$handle." - hash ".$handlehash."\n";