Fix db_file
This commit is contained in:
parent
5586d736fd
commit
48c3009733
1 changed files with 3 additions and 1 deletions
|
@ -441,7 +441,6 @@ send to the gdb-testers mailing list."""
|
||||||
properties = build.getProperties ()
|
properties = build.getProperties ()
|
||||||
isrebuild = properties.getProperty ('isRebuild')
|
isrebuild = properties.getProperty ('isRebuild')
|
||||||
try_count = properties.getProperty ('try_count')
|
try_count = properties.getProperty ('try_count')
|
||||||
db_file = os.path.join (get_web_base (), name, name + '.db')
|
|
||||||
|
|
||||||
try_to = build.getReason ().strip ("'try' job by user ")
|
try_to = build.getReason ().strip ("'try' job by user ")
|
||||||
# Sending the root message to gdb-testers.
|
# Sending the root message to gdb-testers.
|
||||||
|
@ -790,6 +789,9 @@ class ComputeTryBuildCount (steps.BuildStep):
|
||||||
if not istry:
|
if not istry:
|
||||||
count = 0
|
count = 0
|
||||||
else:
|
else:
|
||||||
|
builder = self.getProperty ('buildername')
|
||||||
|
db_file = os.path.join (get_web_base (), builder, builder + '.db')
|
||||||
|
|
||||||
con = sqlite3.connect (db_file)
|
con = sqlite3.connect (db_file)
|
||||||
c = con.cursor ()
|
c = con.cursor ()
|
||||||
c.execute ('SELECT COUNT(*) FROM logs WHERE commitid = "%s" AND branch = "%s" AND trysched = 1' % (sourcestamp.revision, branch))
|
c.execute ('SELECT COUNT(*) FROM logs WHERE commitid = "%s" AND branch = "%s" AND trysched = 1' % (sourcestamp.revision, branch))
|
||||||
|
|
Loading…
Reference in a new issue