Skip to content
Snippets Groups Projects
Commit 17ae908a authored by François  LAURENT's avatar François LAURENT
Browse files

feat: handle escaped newlines

parent 5dd3b037
Branches
No related tags found
1 merge request!14Set of commits to be tagged v0.19
Pipeline #136072 passed
......@@ -201,7 +201,8 @@ Cannot find any Python package in project root directory:
line = line[len(prefix):]
if line.startswith("root:"):
line = line[5:]
log(line.lstrip())
line = '\n'.join(line.lstrip().split(r'\n'))
log(line)
return
# other Python warning messages from dependencies
if line.startswith(" warn(") or line.startswith(" warnings.warn("):
......@@ -260,13 +261,16 @@ Cannot find any Python package in project root directory:
lines = []
for line in msg.splitlines():
lines = self._parse_stdout(logger, lines, line)
if lines:
logger.info("\n".join(lines))
if ret.stderr:
msg = ret.stderr.decode("utf-8")
lines = []
for line in msg.splitlines():
self._parse_stderr(logger, lines, line)
if lines:
raise Exception(f"in {path.name}:\n"+"\n".join(lines))
msg = f"in {path.name}:\n"+"\n".join(lines)
raise Exception(msg)
sys.stderr.flush()
sys.stdout.flush()
return ret
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment