mbox series

[RESEND,0/3] kunit: Init and run test suites in the right state

Message ID 20230928091446.1209703-1-ruanjinjie@huawei.com (mailing list archive)
Headers show
Series kunit: Init and run test suites in the right state | expand

Message

Jinjie Ruan Sept. 28, 2023, 9:14 a.m. UTC
The original order of cases in kunit_module_notify() is confusing and
misleading.

And the best practice is return the err code from
MODULE_STATE_COMING func.

And the test suits should be executed when notify MODULE_STATE_LIVE.

Jinjie Ruan (3):
  kunit: Make the cases sequence more reasonable for
    kunit_module_notify()
  kunit: Return error from kunit_module_init()
  kunit: Init and run test suites in the right state

 lib/kunit/test.c | 37 +++++++++++++++++++++++--------------
 1 file changed, 23 insertions(+), 14 deletions(-)