From 8870e94fe38dc2cd73e0603b5facc4af78b5be83 Mon Sep 17 00:00:00 2001 From: rmistry Date: Tue, 2 Feb 2016 13:55:38 -0800 Subject: [PATCH] Recreate SKPs in a single directory for trusted partners. Context: https://bugs.chromium.org/p/skia/issues/detail?id=3751#c15 BUG=skia:3751 GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1662693002 # Trybots do not run this code NOTRY=true TBR=borenet Review URL: https://codereview.chromium.org/1662693002 --- tools/skp/webpages_playback.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tools/skp/webpages_playback.py b/tools/skp/webpages_playback.py index ee1b8263ab..23c6442fa6 100644 --- a/tools/skp/webpages_playback.py +++ b/tools/skp/webpages_playback.py @@ -377,11 +377,10 @@ class SkPicturePlayback(object): partner_gs = GoogleStorageDataStore(PARTNERS_GS_BUCKET) partner_gs.upload_dir_contents( os.path.join(LOCAL_PLAYBACK_ROOT_DIR, SKPICTURES_DIR_NAME), - dest_dir=posixpath.join(SKPICTURES_DIR_NAME, dest_dir_name), + dest_dir=SKPICTURES_DIR_NAME, upload_if=gs_utils.GSUtils.UploadIf.IF_MODIFIED) print '\n\n=======New SKPs have been uploaded to %s =======\n\n' % ( - posixpath.join(partner_gs.target_name(), SKPICTURES_DIR_NAME, - dest_dir_name)) + posixpath.join(partner_gs.target_name(), SKPICTURES_DIR_NAME)) else: print '\n\n=======Not Uploading to %s=======\n\n' % self.gs.target_type() print 'Generated resources are available in %s\n\n' % (