Merge pull request #3078 from Domanffe/fix/port-harness-windows-log-path
🤖 Agent: read the diff at 28e3286e4: port_harness also picks up Windows `C:...x.log` paths from javac's "see ..." lines. verify green. Queued for the merger.
This commit is contained in:
@@ -96,7 +96,8 @@ def prepare_resources(root, version, store):
|
||||
def named_logs(output):
|
||||
"""The logs horizon-prepare's errors point to ("…; see /path/export.log"): its javac errors are there."""
|
||||
text = ""
|
||||
for name in sorted(set(re.findall(r"see (/\S+\.log)", output))):
|
||||
# A log path is absolute on every host: "/tmp/x.log" or "C:\tmp\x.log".
|
||||
for name in sorted(set(re.findall(r"see ((?:/|[A-Za-z]:[\\/])\S+\.log)", output))):
|
||||
path = Path(name)
|
||||
if path.is_file():
|
||||
text += path.read_text(errors="replace")[-(1 << 20):]
|
||||
|
||||
Reference in New Issue
Block a user