comparison scripts/build.py @ 245:a22ec8fce6c9

Store the reason(s) for build step failure in the database. Requires DB upgrade.
author cmlenz
date Mon, 03 Oct 2005 21:15:31 +0000
parents 24e91cbae6e0
children 0df178e07fdb
comparison
equal deleted inserted replaced
244:1aa624af9ebb 245:a22ec8fce6c9
54 if not steps_to_run or step.id in steps_to_run: 54 if not steps_to_run or step.id in steps_to_run:
55 print 55 print
56 print '-->', step.id 56 print '-->', step.id
57 for type, category, generator, output in step.execute(recipe.ctxt): 57 for type, category, generator, output in step.execute(recipe.ctxt):
58 if type == Recipe.ERROR: 58 if type == Recipe.ERROR:
59 log.error('Failure in step "%s": %s', step.id, output) 59 log.error(output)
60 elif type == Recipe.LOG and options.print_logs: 60 elif type == Recipe.LOG and options.print_logs:
61 output.write(sys.stdout, newlines=True) 61 output.write(sys.stdout, newlines=True)
62 elif type == Recipe.REPORT and options.print_reports: 62 elif type == Recipe.REPORT and options.print_reports:
63 output.write(sys.stdout, newlines=True) 63 output.write(sys.stdout, newlines=True)
64 if step.id in steps_to_run: 64 if step.id in steps_to_run:
Copyright (C) 2012-2017 Edgewall Software