tests: Import sqlite3 only if used

Might help some systems that don't have/need it.

Signed-hostap: Johannes Berg <johannes.berg@intel.com>
This commit is contained in:
Johannes Berg 2013-10-30 19:20:07 +02:00 committed by Jouni Malinen
parent 781b65cfbb
commit 2f3a3edd5d

View file

@ -10,7 +10,6 @@ import os
import re
import sys
import time
import sqlite3
from datetime import datetime
import logging
@ -83,6 +82,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':