From 41e2ff2bff553f3bba06ba3c0e50b5c568ccf1c9 Mon Sep 17 00:00:00 2001 From: "commit-bot@chromium.org" Date: Fri, 23 May 2014 15:31:02 +0000 Subject: fix bench rebase tool to cope with wider range of bots. BUG=skia:2373 R=kelvinly@google.com TBR=kelvinly@google.com NOTRY=true Author: bensong@google.com Review URL: https://codereview.chromium.org/292623005 git-svn-id: http://skia.googlecode.com/svn/trunk@14869 2bbb7eff-a529-9590-31e7-b0007b416f81 --- experimental/benchtools/rebase.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'experimental') diff --git a/experimental/benchtools/rebase.py b/experimental/benchtools/rebase.py index 5eee51630d..3f89791eb4 100755 --- a/experimental/benchtools/rebase.py +++ b/experimental/benchtools/rebase.py @@ -84,7 +84,7 @@ def download_gs_files(p, h, gs_dir): os.remove(os.path.join(gs_dir, p, f)) else: files += 1 - if files == 4: + if files: return True return False @@ -220,7 +220,7 @@ def main(): hash_to_use = '' for h in reversed(hashes): li = get_gs_filelist(p, h) - if len(li) != 4: # no or partial data + if not len(li): # no data continue if download_gs_files(p, h, gs_dir): print 'Copied %s/%s' % (p, h) -- cgit v1.2.3