[prev in list] [next in list] [prev in thread] [next in thread]
List: hostap
Subject: [PATCH] hwsim tests: create results database in VM tests
From: Johannes Berg <johannes () sipsolutions ! net>
Date: 2013-10-31 14:36:44
Message-ID: 1383230204-31253-1-git-send-email-johannes () sipsolutions ! net
[Download RAW message or body]
From: Johannes Berg <johannes.berg@intel.com>
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>
---
tests/hwsim/run-tests.py | 2 ++
tests/hwsim/vm/inside.sh | 1 +
2 files changed, 3 insertions(+)
diff --git a/tests/hwsim/run-tests.py b/tests/hwsim/run-tests.py
index 8735dc2..429cbdb 100755
--- a/tests/hwsim/run-tests.py
+++ b/tests/hwsim/run-tests.py
@@ -154,6 +154,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
diff --git a/tests/hwsim/vm/inside.sh b/tests/hwsim/vm/inside.sh
index 7645083..cbef727 100755
--- a/tests/hwsim/vm/inside.sh
+++ b/tests/hwsim/vm/inside.sh
@@ -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
--
1.8.4.rc3
_______________________________________________
HostAP mailing list
HostAP@lists.shmoo.com
http://lists.shmoo.com/mailman/listinfo/hostap
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic