Skip to content

Commit e00da6f

Browse files
committed
Cope with having no kernels to run in ktest-all
1 parent 242eeff commit e00da6f

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

ktest-all.sh

+4-2
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@ function maybe_kflag
2020
return 1
2121
}
2222

23-
for k in kernel-images/amd64/*
23+
mkdir -p kernel-images/{amd64,arm64}
24+
25+
while IFS= read -r -d '' k
2426
do
2527
kname="$(basename "$k")"
2628
echo testing "$kname"
@@ -31,7 +33,7 @@ do
3133
failures=$((failures+1))
3234
fi
3335
result="${result}${r}\n"
34-
done
36+
done < <(find kernel-images/{amd64,arm64} -type f -print0)
3537

3638
echo -ne "$result"
3739
echo failures $failures

0 commit comments

Comments
 (0)