projects
/
services
/
jenkins-scripts.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
28fae44
)
Fix the IndexError issue for job_sync_snapdiff.py
author
ZhuoX Li
<zhuox.li@intel.com>
Tue, 24 Jun 2014 08:22:13 +0000
(16:22 +0800)
committer
Lin Yang
<lin.a.yang@intel.com>
Mon, 7 Jul 2014 09:03:39 +0000
(17:03 +0800)
Maybe not find the matched snapshot, should skip it.
Fixes: #1992
Change-Id: Ic658de194f5db423d1e6fcc7a23f92ac458b79b8
job_sync_snapdiff.py
patch
|
blob
|
history
diff --git
a/job_sync_snapdiff.py
b/job_sync_snapdiff.py
index
5169794
..
c1cd501
100755
(executable)
--- a/
job_sync_snapdiff.py
+++ b/
job_sync_snapdiff.py
@@
-36,6
+36,9
@@
def search_last_build(build_url, released=False):
soup = bs4.BeautifulSoup(res.text)
pattern = re.compile('^tizen_[0-9]{8}.[0-9]+/$')
builds = [i.text for i in soup.find_all(href=pattern)]
+ if not builds:
+ print "Not find the any snapshot in %s, skip" % build_url
+ return
if released:
last_build = builds[-1]