Commit 17e3b6ab authored by Denis Bilenko's avatar Denis Bilenko

testrunner.py: create directory for testresults.sqlite if it does not exist

parent d221f870
......@@ -590,6 +590,9 @@ def main():
options.db = False
if options.db:
directory = os.path.dirname(options.db)
if not os.path.exists(directory):
os.makedirs(directory)
db = sqlite3.connect(options.db)
db.execute('create table if not exists test (id integer primary key autoincrement, runid text)')
db.execute('create table if not exists testcase (id integer primary key autoincrement, runid text)')
......
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