kunit: tool: simplify creating LinuxSourceTreeOperations
authorDaniel Latypov <dlatypov@google.com>
Wed, 18 May 2022 17:01:23 +0000 (10:01 -0700)
committerShuah Khan <skhan@linuxfoundation.org>
Thu, 7 Jul 2022 23:59:13 +0000 (17:59 -0600)
commit8c278d97ad721442692e610007494e8e18cc0288
treecfcd610afe4537b77a8fda15ffe6369f0da33ee6
parent9241bc818d54b9cb7d1c9a28f26afa58e6d0bb7c
kunit: tool: simplify creating LinuxSourceTreeOperations

Drop get_source_tree_ops() and just call what used to be
get_source_tree_ops_from_qemu_config() in both cases.

Also rename the functions to have shorter names and add a "_" prefix to
note they're not meant to be used outside this function.

Signed-off-by: Daniel Latypov <dlatypov@google.com>
Reviewed-by: David Gow <davidgow@google.com>
Reviewed-by: Brendan Higgins <brendanhiggins@google.com>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
tools/testing/kunit/kunit_kernel.py