summaryrefslogtreecommitdiff
path: root/misc
diff options
context:
space:
mode:
Diffstat (limited to 'misc')
-rwxr-xr-xmisc/crucible-report7
1 files changed, 4 insertions, 3 deletions
diff --git a/misc/crucible-report b/misc/crucible-report
index f629cdc..7720a40 100755
--- a/misc/crucible-report
+++ b/misc/crucible-report
@@ -11,7 +11,8 @@ import re
import sys
from textwrap import dedent
-cru_re = re.compile(r'^crucible:\s+(\w*)\s*:\s+(\S*)\s*$')
+cru_re = re.compile('^crucible(?:\s*\[(?P<pid>\w*)\s*\])?:' +
+ '\s+(?P<status>\w*)\s*:\s+(?P<name>\S*)\s*$')
def parse_results(fname):
results = {}
@@ -21,8 +22,8 @@ def parse_results(fname):
if not match:
continue
- name = match.group(2)
- status = match.group(1)
+ name = match.group('name')
+ status = match.group('status')
# We don't want info mesages
if status not in ('start', 'pass', 'fail', 'skip'):