aboutsummaryrefslogtreecommitdiffhomepage
path: root/bench
diff options
context:
space:
mode:
authorGravatar bensong@google.com <bensong@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-02-08 18:47:02 +0000
committerGravatar bensong@google.com <bensong@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-02-08 18:47:02 +0000
commit7325818e0bd344be661172559b8bd6ef3830332d (patch)
tree27a1bd8f4c9461a00c253d8add120ac6b055992e /bench
parent7cacbbd98ab8b7fa2cbe6a5a0f7c3a1bf06fe43b (diff)
Fixes a bug that didn't address new perfdata location.
Review URL: https://codereview.appspot.com/7299070 git-svn-id: http://skia.googlecode.com/svn/trunk@7673 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'bench')
-rwxr-xr-xbench/gen_skp_ranges.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/bench/gen_skp_ranges.py b/bench/gen_skp_ranges.py
index 8ba2feffe3..f138ee9ef2 100755
--- a/bench/gen_skp_ranges.py
+++ b/bench/gen_skp_ranges.py
@@ -98,7 +98,11 @@ def OutputSkpBenchExpectations(rev_min, rev_max, representation_alg):
obj.name.find('_data_skp_') < 0):
continue
# Ignores uninterested platforms.
- platform = obj.name.split('/')[1][5:] # Removes "Skia_" prefix.
+ platform = obj.name.split('/')[1][5:] # Removes "Skia_" prefix
+ if not platform.startswith('Skia_'):
+ platform = obj.name.split('/')[2][5:] # Removes "Skia_" prefix.
+ if not platform.startswith('Skia_'):
+ continue # Not an object with platform info.
if platform not in PLATFORMS:
continue
# Filters by revision.