Skip to content

Commit c0610f0

Browse files
committed
Fix accept-expected-changes-from-ci.py
1 parent cc9b210 commit c0610f0

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

misc/scripts/accept-expected-changes-from-ci.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ def get_log_content(status: GithubStatus) -> str:
208208
LOGGER.debug(f"'{status.context}': Getting logs")
209209
if status.job_ids:
210210
contents = [subprocess.check_output(
211-
["gh", "api", f"/repos/{status.nwo}/actions/jobs/{job_id}/logs"],
211+
["gh", "api", f"/repos/{status.nwo}/actions/jobs/{job_id}/logs", "--allow-escape-sequences"],
212212
).decode("utf-8") for job_id in status.job_ids]
213213
content = "\n".join(contents)
214214
else:
@@ -275,7 +275,7 @@ def main(pr_number: Optional[int], sha_override: Optional[str] = None, force=Fal
275275

276276
lang_test_failures: List[GithubStatus] = list()
277277
for status in newest_status.values():
278-
if " Language Tests" in status.context or status.context in supported_internal_status_language_test_names:
278+
if " Language Tests" in status.context and not " Language Tests Windows" in status.context or status.context in supported_internal_status_language_test_names:
279279
if status.state == "failure":
280280
lang_test_failures.append(status)
281281
elif status.state == "pending":

0 commit comments

Comments
 (0)