Have the towncrier generator complain if the output looks wrong
This commit is contained in:
parent
ebc7db12fb
commit
905ef6dadd
1 changed files with 8 additions and 1 deletions
|
@ -845,7 +845,14 @@ class MatrixUnits(Units):
|
|||
stderr=subprocess.PIPE,
|
||||
cwd=tc_path,
|
||||
).strip().decode('UTF-8')
|
||||
except subprocess.CalledProcessError:
|
||||
|
||||
# This is a bit of a hack, but it does mean that the log at least gets *something*
|
||||
# to tell us it broke
|
||||
if not raw_log.startswith("Unreleased Changes"):
|
||||
logger.error(raw_log)
|
||||
raw_log = ""
|
||||
except subprocess.CalledProcessError as e:
|
||||
logger.error(e)
|
||||
raw_log = ""
|
||||
tc_lines = raw_log.splitlines()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue