summaryrefslogtreecommitdiff
path: root/distbuild-helper
diff options
context:
space:
mode:
authorSam Thursfield <sam.thursfield@codethink.co.uk>2015-04-07 18:17:10 +0000
committerPedro Alvarez <pedro.alvarez@codethink.co.uk>2015-04-22 08:22:39 +0000
commit124e2f1b68a5176dcb3bf37543d4d9ff26a14b95 (patch)
treed00ad83aa71ea34876996823e0eb5523188f84f4 /distbuild-helper
parent8103617c23fed8f07f23431d0b66ca6bcb6cba2d (diff)
downloadmorph-124e2f1b68a5176dcb3bf37543d4d9ff26a14b95.tar.gz
distbuild: Add test suite for distbuild-helper
This is mostly to check that the 'cancel entire subprocess tree' works as expected. Revert that patch and the test fails. There are also some tweaks included in this commit. Change-Id: If297522e6589ebb3a07dac66a39eb243789e53aa
Diffstat (limited to 'distbuild-helper')
-rwxr-xr-xdistbuild-helper14
1 files changed, 14 insertions, 0 deletions
diff --git a/distbuild-helper b/distbuild-helper
index 1f648dd4..b1300fb0 100755
--- a/distbuild-helper
+++ b/distbuild-helper
@@ -32,6 +32,20 @@ import urlparse
import distbuild
+'''distbuild-helper
+
+This program exists to run other programs, and to make HTTP requests. It
+is used both by the distbuild controller (`morph controller-daemon` process)
+and the distbuild workers (`morph worker-daemon` processes).
+
+It communicates via JSON messages. For workers, it connects on the same port
+that the controller process connects. The controller has a special
+controller-helper-port which it uses for communication with its
+distbuild-helper process.
+
+'''
+
+
class HelperMachine(distbuild.StateMachine):
def __init__(self, conn):