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
stuck.
This fix check the variable $tests, return when it is empty.
Signed-off-by: Lu Dai
---
tools/testing/selftests/kselftest_deps.sh | 1 +
1
grep|cut pipe will hang when there is no input for grep
Signed-off-by: Lu Dai
---
tools/testing/selftests/kselftest_deps.sh | 1 +
1 file changed, 1 insertion(+)
diff --git a/tools/testing/selftests/kselftest_deps.sh
b/tools/testing/selftests/kselftest_deps.sh
index de59cc8f03c3..487e49fdf2a6