From: Johannes Berg Date: Wed, 30 Oct 2013 17:20:07 +0000 (+0200) Subject: tests: Import sqlite3 only if used X-Git-Tag: hostap_2_1~729 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2f3a3edd5dfdcf3fad6c4715843a6b5b0437c29d;p=thirdparty%2Fhostap.git tests: Import sqlite3 only if used Might help some systems that don't have/need it. Signed-hostap: Johannes Berg --- diff --git a/tests/hwsim/run-tests.py b/tests/hwsim/run-tests.py index d288f9468..e319eec01 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 @@ -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':