Fix cr SKPs naming
authorrmistry <rmistry@google.com>
Tue, 31 Mar 2015 15:03:02 +0000 (08:03 -0700)
committerCommit bot <commit-bot@chromium.org>
Tue, 31 Mar 2015 15:03:02 +0000 (08:03 -0700)
 #crskps

BUG=skia:
BUG=skia:3574

NOTRY=true

TBR=borenet

Review URL: https://codereview.chromium.org/1044193003

HASHTAGS
tools/skp/webpages_playback.py

index b52a1f8..45fd645 100644 (file)
--- a/HASHTAGS
+++ b/HASHTAGS
@@ -19,4 +19,4 @@ n5,CQ_INCLUDE_TRYBOTS=client.skia.android:Test-Android-Nexus5-Adreno330-Arm7-Deb
 n7,CQ_INCLUDE_TRYBOTS=client.skia.android:Test-Android-Nexus7-Tegra3-Arm7-Debug-Trybot
 n9,CQ_INCLUDE_TRYBOTS=client.skia.android:Test-Android-Nexus9-TegraK1-Arm64-Release-Trybot
 
-crskps,BUG=skia:3574
+crskps,BUG=skia:3574,NOTRY=true
index 67c84ae..7fbb372 100644 (file)
@@ -388,7 +388,10 @@ class SkPicturePlayback(object):
     # /path/to/http___mobile_news_sandbox_pt0 -> http___mobile_news_sandbox_pt0
     _, webpage = os.path.split(site)
     # http___mobile_news_sandbox_pt0 -> mobile_news_sandbox_pt0
-    webpage = webpage.lstrip('http___').lstrip('https___')
+    if webpage.startswith('http___'):
+      webpage = webpage[7:]
+    elif webpage.startswith('https___'):
+      webpage = webpage[8:]
     # /path/to/skia_yahooanswers_desktop.py -> skia_yahooanswers_desktop.py
     ps_filename = os.path.basename(page_set)
     # http___mobile_news_sandbox -> pagesetprefix_http___mobile_news_sandbox