Mercurial > bitten > bitten-test
comparison scripts/build.py @ 131:3ed8f568f60a
Fix error handling so that reports are still generated even if a command has failed.
author | cmlenz |
---|---|
date | Fri, 12 Aug 2005 19:11:16 +0000 |
parents | 5bf22bb87915 |
children | 76dea27af878 |
comparison
equal
deleted
inserted
replaced
130:091ead7d2876 | 131:3ed8f568f60a |
---|---|
52 for step in recipe: | 52 for step in recipe: |
53 if not steps_to_run or step.id in steps_to_run: | 53 if not steps_to_run or step.id in steps_to_run: |
54 print | 54 print |
55 print '-->', step.description or step.id | 55 print '-->', step.description or step.id |
56 for type, function, output in step.execute(recipe.ctxt): | 56 for type, function, output in step.execute(recipe.ctxt): |
57 pass | 57 if type == Recipe.ERROR: |
58 log.error('Failure in step "%s": %s', step.id, output) | |
58 if step.id in steps_to_run: | 59 if step.id in steps_to_run: |
59 steps_to_run[step.id] = True | 60 steps_to_run[step.id] = True |
60 | 61 |
61 if __name__ == '__main__': | 62 if __name__ == '__main__': |
62 try: | 63 try: |