aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools/skp
diff options
context:
space:
mode:
authorGravatar rmistry <rmistry@google.com>2015-03-31 08:03:02 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2015-03-31 08:03:02 -0700
commit39383a194622a917dd2ae0c4b43e9c634d61e94a (patch)
treec9fce91d20464b1f3965efde9a814ff872575ace /tools/skp
parent5af9a3792f3b5a1b2153391ddf1064098a177d4d (diff)
Fix cr SKPs naming
#crskps BUG=skia: BUG=skia:3574 NOTRY=true TBR=borenet Review URL: https://codereview.chromium.org/1044193003
Diffstat (limited to 'tools/skp')
-rw-r--r--tools/skp/webpages_playback.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/tools/skp/webpages_playback.py b/tools/skp/webpages_playback.py
index 67c84ae38b..7fbb372fd3 100644
--- a/tools/skp/webpages_playback.py
+++ b/tools/skp/webpages_playback.py
@@ -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