[PATCH] tests: hwsim: kernel: add a test for kunit
Johannes Berg
johannes at sipsolutions.net
Mon Jan 15 00:04:16 PST 2024
On Sun, 2024-01-14 at 18:26 +0200, Jouni Malinen wrote:
>
> What would happen if this test case were run multiple times in the same
> VM? Would the kernel module need to be unloaded at the end of the test
> case to make that work? Could the current version result in failing the
> first run and then claiming that the second attempt passed since the
> modules were not loaded again?
I had never even thought about that, but I think literally nothing will
happen. The module load will appear to succeed since it's already there,
and no 'fail=N' string will show up in dmesg due to it.
I had considered parsing out the tests, but over time we've had this be
somewhat brittle even with the parsing scripts that are shipped as part
of the kernel, requiring updates every once a while. That didn't seem
great. Having the hostap test know about the expected kunit tests also
seemed awkward, so I settled for just making sure this fails if it
fails.
johannes
More information about the Hostap
mailing list