# HG changeset patch # User cmlenz # Date 1186860027 0 # Node ID bc81d7b069ff35c783911729bdf282b880aa4ca2 # Parent 8864b39172213ebc13288fa0cd091307815d1252 Rudimentary implementation of ``dry-run`` option in build slave. Builds are still put in in progress mode, but no results are transmitted back, and the build is automatically invalidated after the slave is done. diff --git a/bitten/slave.py b/bitten/slave.py --- a/bitten/slave.py +++ b/bitten/slave.py @@ -197,6 +197,8 @@ break else: log.info('Build completed') + if self.dry_run: + self._cancel_build(build_url) finally: if not self.keep_files: log.debug('Removing build directory %s' % basedir) @@ -235,7 +237,7 @@ xml.attr['status'] = 'success' log.info('Build step %s completed successfully', step.id) - if not self.local: + if not self.local and not self.dry_run: try: resp = self.request('POST', build_url + '/steps/', str(xml), { 'Content-Type': 'application/x-bitten+xml'