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>
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
# 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