hwsim tests: Create results database in VM tests
Create a results.db in the output directory when running the tests in a VM. To make that easier, create the tables in the python script if they don't exist. Signed-hostap: Johannes Berg <johannes.berg@intel.com>
This commit is contained in:
parent
4a1b8901ab
commit
63f83fac0d
2 changed files with 3 additions and 0 deletions
|
@ -155,6 +155,8 @@ def main():
|
|||
if args.database:
|
||||
import sqlite3
|
||||
conn = sqlite3.connect(args.database)
|
||||
conn.execute('CREATE TABLE IF NOT EXISTS results (test,result,run,time,duration,build,commitid)')
|
||||
conn.execute('CREATE TABLE IF NOT EXISTS tests (test,description)')
|
||||
else:
|
||||
conn = None
|
||||
|
||||
|
|
|
@ -63,6 +63,7 @@ else
|
|||
# finally run the tests
|
||||
export USER=0
|
||||
export LOGDIR=/tmp/logs
|
||||
export DBFILE=$LOGDIR/results.db
|
||||
|
||||
cd $TESTDIR
|
||||
./run-all.sh $ARGS >/dev/ttyS0 2>&1
|
||||
|
|
Loading…
Reference in a new issue