Skip to content

Commit

Permalink
Merge pull request #4317 from miles170/issue-4276-fix-docs
Browse files Browse the repository at this point in the history
docs: fix invalid test status in gnu-full-result
  • Loading branch information
sylvestre authored Feb 2, 2023
2 parents 1ef1551 + e8f7395 commit 4393eca
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions util/gnu-json-result.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
"""

import json
from pathlib import Path
import re
import sys
from os import environ
from pathlib import Path

out = {}

Expand All @@ -20,7 +20,11 @@
try:
with open(path) as f:
content = f.read()
current[path.name] = content.split("\n")[-2].split(" ")[0]
result = re.search(
r"(PASS|FAIL|SKIP|ERROR) [^ ]+ \(exit status: \d+\)$", content
)
if result:
current[path.name] = result.group(1)
except:
pass

Expand Down

0 comments on commit 4393eca

Please sign in to comment.