[PATCH] hwsim tests: prefill database in VM tests

Jouni Malinen j
Sat Nov 2 01:22:25 PDT 2013

On Thu, Oct 31, 2013 at 04:05:11PM +0100, Johannes Berg wrote:
> In some cases, e.g. with the VM tests if the VM crashes, it
> can be useful to know which tests should have run but didn't
> (or didn't finish). In order to catch these more easily, add
> an option to prefill the database with all tests at the very
> beginning of the testing (in a new NOTRUN state) and use the
> option in the VM tests.

> diff --git a/tests/hwsim/run-tests.py b/tests/hwsim/run-tests.py
> +        if prefill:
> +            conn.execute('DELETE FROM results WHERE test=? AND run=?', (test, run))

Not that I expect this to show up in practice, but I added
result='NOTRUN' as a condition for this delete.

Jouni Malinen                                            PGP id EFC895FA

More information about the Hostap mailing list