> Do you have a quick method of extracting the data from the test output in
a convenient way for the spreadsheet?
I have a script that given output of test run extracts test names and test
commands (attached). Other fields, like failure output, I inserted manually.


On Fri, Jan 24, 2014 at 3:58 PM, Jacob Bramley <[email protected]>wrote:

> On Friday, January 24, 2014 2:52:13 PM UTC, Ulan Degenbaev wrote:
>
>> > Having said that, I only run release tests for the merges and that one
>> hasn't gone through our overnight test system yet, so I don't have anything
>> I can add to the spreadsheet, but I'll add them on Monday.
>> I see. Maybe it is worthwhile adding a new sheet to the spreadsheet that
>> tracks release mode failures?
>>
>
> Yep, that's no problem at all. Do you have a quick method of extracting
> the data from the test output in a convenient way for the spreadsheet?
>
> --
> --
> v8-dev mailing list
> [email protected]
> http://groups.google.com/group/v8-dev
> ---
> You received this message because you are subscribed to the Google Groups
> "v8-dev" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/groups/opt_out.
>

-- 
-- 
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- 
You received this message because you are subscribed to the Google Groups 
"v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.
import sys
import re

def name(line):
  m = re.match("===\s+(.*)\s+===", line)
  return m and m.group(1)

def command(line):
  m = re.match("Command: (.*)", line)
  return m and m.group(1)

def interesting(line):
  return name(line) or command(line)

inp = sys.stdin.read()

inp = inp.replace("\r", "\n")

lines = inp.split("\n")

lines = filter(interesting, lines)

n = len(lines)
assert(n % 2 == 0)
i = 0
while i < n:
  nam = name(lines[i])
  cmd = command(lines[i + 1]) 
  print(" owner \t revision \t  comment \t %s \t failure \t %s" % (nam, cmd))
  i += 2

Reply via email to