selftests: kselftest_deps: fix l5_test() empty variable
authorLu Dai <dai.lu@exordes.com>
Sat, 4 May 2024 15:01:06 +0000 (18:01 +0300)
committerShuah Khan <skhan@linuxfoundation.org>
Wed, 8 May 2024 22:46:41 +0000 (16:46 -0600)
commit17909476d631979927109187cc7e89e4577ff5be
tree8312800f9e6f924319b86a1c1ef083b4a43dda3b
parentd4e6fbd245c48b272cc591d1c5e7c07aedd7f071
selftests: kselftest_deps: fix l5_test() empty variable

In the function l5_test(), variable $tests is empty when there is no .mk
file in the subsystem to be tested. It causes the following grep operation
get stuck.

This fix check the variable $tests, return when it is empty.

Signed-off-by: Lu Dai <dai.lu@exordes.com>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
tools/testing/selftests/kselftest_deps.sh