[PATCH] hwsim tests: import sqlite3 only if used
Johannes Berg
johannes
Wed Oct 30 08:39:41 PDT 2013
From: Johannes Berg <johannes.berg at intel.com>
Might help some systems that don't have/need it.
Signed-hostap: Johannes Berg <johannes.berg at intel.com>
---
tests/hwsim/run-tests.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tests/hwsim/run-tests.py b/tests/hwsim/run-tests.py
index abe26f3..82e0c52 100755
--- a/tests/hwsim/run-tests.py
+++ b/tests/hwsim/run-tests.py
@@ -10,7 +10,6 @@ import os
import re
import sys
import time
-import sqlite3
from datetime import datetime
import logging
@@ -82,6 +81,7 @@ def main():
test_file = sys.argv[idx + 1]
idx = idx + 2
elif len(sys.argv) > idx + 1 and sys.argv[idx] == '-S':
+ import sqlite3
conn = sqlite3.connect(sys.argv[idx + 1])
idx = idx + 2
elif len(sys.argv) > idx + 1 and sys.argv[idx] == '-b':
--
1.8.4.rc3
More information about the Hostap
mailing list