summaryrefslogtreecommitdiff
path: root/misc
diff options
context:
space:
mode:
authorJason Ekstrand <jason.ekstrand@intel.com>2015-12-15 11:19:36 -0800
committerJason Ekstrand <jason.ekstrand@intel.com>2015-12-15 11:19:45 -0800
commit83fbc2110a1d385732aa2ff5d24461b15f034848 (patch)
tree1eee3f3bf7caaf880293f9ca51cba639f4dc41c2 /misc
parent8a3509ff30fc39c366aaa39382c370f71a5af535 (diff)
cru: Add support for logging PIDs of child processes
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'):