Commit 7f18f7da authored by Denis Bilenko's avatar Denis Bilenko

testrunner.py: compatibility with 2.4

parent 9f187014
......@@ -362,9 +362,12 @@ def main():
options, args = parser.parse_args()
options.verbosity += options.verbose - options.quiet
if options.db is None and sqlite3:
options.db = get_tempnam() if get_changeset().endswith('+') else 'testresults.sqlite3'
if not options.db and sqlite3:
if get_changeset().endswith('+'):
options.db = get_tempnam()
else:
options.db = 'testresults.sqlite3'
print 'Storing the results in %s' % options.db
elif options.db and not sqlite3:
sys.exit('Cannot access the database: no sqlite3 module found.')
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment