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
This commit is contained in:
parent
f757fd3238
commit
41e2ff2bff
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user