Mercurial > bitten > bitten-test
changeset 424:bc81d7b069ff
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.
author | cmlenz |
---|---|
date | Sat, 11 Aug 2007 19:20:27 +0000 |
parents | 8864b3917221 |
children | 818c81fad00c |
files | bitten/slave.py |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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'