tests: Optimize run-tests.py --prefill-tests startup time
authorJouni Malinen <jouni@qca.qualcomm.com>
Thu, 27 Nov 2014 18:08:15 +0000 (20:08 +0200)
committerJouni Malinen <j@w1.fi>
Thu, 27 Nov 2014 18:08:15 +0000 (20:08 +0200)
commit9363f5e065960056582367b715d3e19f4b7c4a65
tree2d39c43ebdfbaa82d615c751397aaec93fbbf22f
parentb925506a9184faca0eb0cc85beb85d16722e25bf
tests: Optimize run-tests.py --prefill-tests startup time

It took significant part of the startup latency to prefill the database
with test cases due to the SQL COMMIT operation between each added row.
Move COMMIT to outside the loop to speed startup significantly.

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
tests/hwsim/run-tests.py