selftests: fix dependency checker script
PATCH 1/1 selftests: fix dependency checker script
grep|cut pipe will hang when there is no input for grep
Signed-off-by Lu Dai <[email protected]>
--- tools/testing/selftests/kselftest_deps.sh | 1 + 1 file changed, 1 insertion(+)
tools/testing/selftests/kselftest_deps.sh +1 -0
@@ -244,6 +244,7 @@ l4_test() l5_test() { tests=$(find $(dirname "$test") -type f -name "*.mk") + [[ -z "${tests// }" ]] && return test_libs=$(grep "^IOURING_EXTRA_LIBS +\?=" $tests | \ cut -d "=" -f 2)
Signature · 1 line
2.34.1