Chromium Code Reviews| Index: slave/skia_slave_scripts/get_subdir.py |
| diff --git a/slave/skia_slave_scripts/get_subdir.py b/slave/skia_slave_scripts/get_subdir.py |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..c29fb71817dfa751e8798a6907e1e361fabeed4e |
| --- /dev/null |
| +++ b/slave/skia_slave_scripts/get_subdir.py |
| @@ -0,0 +1,43 @@ |
| +# Copyright (c) 2013 The Chromium Authors. All rights reserved. |
| +# Use of this source code is governed by a BSD-style license that can be |
| +# found in the LICENSE file. |
| + |
| +""" Function to get the appropriate skimage subdir from the builder name. """ |
| + |
| +# Expectations files are stored in a folder corresponding to the builder |
| +# name. Return the name of the folder based on the builder_name. |
| +def GetSubDirFromBuilderName(builder_name): |
|
scroggo
2013/06/24 17:43:16
This is a hack I've used to grab the right expecta
borenet
2013/06/25 18:19:12
I made this comment in BuildStep - it looks like w
scroggo
2013/06/25 19:28:56
Done. What is the correct way to handle None? It s
|
| + # Mapping of expectations subdir |
| + # to builder name (see list at http://108.170.217.252:10117/builders ) |
| + # Copied from rebaseline.py |
| + SUBDIR_MAPPING = { |
| + 'base-shuttle-win7-intel-float': |
| + 'Test-Win7-ShuttleA-HD2000-x86-Release', |
| + 'base-shuttle-win7-intel-angle': |
| + 'Test-Win7-ShuttleA-HD2000-x86-Release-ANGLE', |
| + 'base-shuttle-win7-intel-directwrite': |
| + 'Test-Win7-ShuttleA-HD2000-x86-Release-DirectWrite', |
| + 'base-shuttle_ubuntu12_ati5770': |
| + 'Test-Ubuntu12-ShuttleA-ATI5770-x86_64-Release', |
| + 'base-macmini': |
| + 'Test-Mac10.6-MacMini4.1-GeForce320M-x86-Release', |
| + 'base-macmini-lion-float': |
| + 'Test-Mac10.7-MacMini4.1-GeForce320M-x86-Release', |
| + 'base-android-galaxy-nexus': |
| + 'Test-Android-GalaxyNexus-SGX540-Arm7-Debug', |
| + 'base-android-nexus-7': |
| + 'Test-Android-Nexus7-Tegra3-Arm7-Release', |
| + 'base-android-nexus-s': |
| + 'Test-Android-NexusS-SGX540-Arm7-Release', |
| + 'base-android-xoom': |
| + 'Test-Android-Xoom-Tegra2-Arm7-Release', |
| + 'base-android-nexus-10': |
| + 'Test-Android-Nexus10-MaliT604-Arm7-Release', |
| + } |
| + for k, v in SUBDIR_MAPPING.items(): |
| + if v == builder_name: |
| + return k |
| + # Why is my builder not in here?? |
| + return 'base-shuttle_ubuntu12_ati5770' |
|
scroggo
2013/06/24 17:43:16
Double hack, because my local builder was not foun
|
| +# return None |
| + |