def step_impl(context): ignore_re = build_regexp(context.text) badlines, _errors, _warnings = analyselog(context.log, ignore_re) assert len(badlines) == 0,\ ("Found following errors and/or warnings lines in the logfile:\n" + "".join(badlines) + "For details see %s" % context.log)