summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam Thursfield <sam.thursfield@codethink.co.uk>2015-02-17 18:34:05 (GMT)
committerSam Thursfield <sam.thursfield@codethink.co.uk>2015-02-17 18:34:05 (GMT)
commitca9b3479d135283df02039241c1ebc0e3e074a40 (patch)
treecc701f40cefc6490d835566949d825772885eea7
parent9c8a7333ff0b86e1e2bb0bd5de0f7ff199980e03 (diff)
downloadmorph-sam/distbuild-build-logs-science.tar.gz
6. Write lots of output to the log filessam/distbuild-build-logs-science
THIS CAUSES THE CROSSED WIRES BUG TO OCCUR!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!1
-rw-r--r--morphlib/plugins/distbuild_plugin.py7
-rwxr-xr-xscripts/distbuild1
2 files changed, 7 insertions, 1 deletions
diff --git a/morphlib/plugins/distbuild_plugin.py b/morphlib/plugins/distbuild_plugin.py
index 08c384d..91e4f22 100644
--- a/morphlib/plugins/distbuild_plugin.py
+++ b/morphlib/plugins/distbuild_plugin.py
@@ -18,6 +18,7 @@
import cliapp
import re
+import time
import morphlib
import distbuild
@@ -138,7 +139,11 @@ class WorkerBuild(cliapp.Plugin):
#self.app.subcommands['gc']([])
- self.app.status(msg='NAME: %s' % to_build.name)
+ # Some fake build output
+ for i in range(0, 100):
+ self.app.status(msg='NAME: %s %i' % (to_build.name, i))
+ time.sleep(0.1)
+
arch = root_artifact.source.morphology['arch']
bc.cache_or_build_source(to_build, bc.new_build_env(arch))
diff --git a/scripts/distbuild b/scripts/distbuild
index 0c6aaa8..2281a11 100755
--- a/scripts/distbuild
+++ b/scripts/distbuild
@@ -341,6 +341,7 @@ class DistbuildTestHarness(cliapp.Application):
initiators = []
initiator_monitor = ProcessMonitor()
+ initiator_log_path = subdir(datadir, 'builds')
try:
main_initiator = self.start_build(
'build-main', controller, to_build[1],