diff mbox

[Branch,~linaro-validation/lava-test/trunk] Rev 186: Add proper result parsing for browser-benchmarks

Message ID 20121030074610.31905.13833.launchpad@ackee.canonical.com
State Accepted
Headers show

Commit Message

John Rigby Oct. 30, 2012, 7:46 a.m. UTC
------------------------------------------------------------
revno: 186
committer: John Rigby <john.rigby@linaro.org>
branch nick: trunk
timestamp: Fri 2012-10-26 14:04:00 -0600
message:
  Add proper result parsing for browser-benchmarks
  
  Signed-off-by: John Rigby <john.rigby@linaro.org>
modified:
  lava_test/test_definitions/browser_benchmarks.py


--
lp:lava-test
https://code.launchpad.net/~linaro-validation/lava-test/trunk

You are subscribed to branch lp:lava-test.
To unsubscribe from this branch go to https://code.launchpad.net/~linaro-validation/lava-test/trunk/+edit-subscription
diff mbox

Patch

=== modified file 'lava_test/test_definitions/browser_benchmarks.py'
--- lava_test/test_definitions/browser_benchmarks.py	2012-10-24 20:22:57 +0000
+++ lava_test/test_definitions/browser_benchmarks.py	2012-10-26 20:04:00 +0000
@@ -19,7 +19,7 @@ 
 Use Selenium WebDriver to automatically run browser benchmarks
 and scrape the results.
 
-**URL:** https://code.launchpad.net/~linaro-foundations/linaro-ubuntu/browser-benchmarks
+**URL:** https://code.launchpad.net/~linaro-foundations/linaro-ubuntu/lava-test-browser-benchmarks
 
 **Default Options:** None
 """
@@ -34,15 +34,11 @@ 
 DEPS = ["bzr", "python-pip", "chromium-browser", "firefox"]
 INSTALLSTEPS = ['pip install selenium']
 RUNSTEPS = ["cd lava-test-browser-benchmarks; bash -x ./run-test.sh; pwd"]
-PATTERN = "(?P<test_case_id>[a-zA-Z0-9_-]+):\s(?P<result>\w+)"
-FIXUPS = {
-    "PASS": "pass",
-    "FAIL": "fail"
-}
+PATTERN = "^(?P<test_case_id>\w+):\W+(?P<measurement>\d+)"
 
 installer = TestInstaller(INSTALLSTEPS, deps=DEPS, bzr_repos=BZR_REPOS)
 runner = TestRunner(RUNSTEPS, default_options=DEFAULT_OPTIONS)
-parser = TestParser(PATTERN, fixupdict=FIXUPS)
+parser = TestParser(PATTERN, appendall={'units': 'score', 'result': 'pass'})
 
 testobj = Test(
     test_id="browser-benchmarks",