Skip to content

Commit

Permalink
automated: linux: modules: use modules.order instead of find
Browse files Browse the repository at this point in the history
Using the modules.order file in '/lib/modules/$(uname -r)/' will ensure
the order of the modules are the same.

Signed-off-by: Anders Roxell <[email protected]>
  • Loading branch information
roxell authored and nareshkamboju committed Jul 10, 2024
1 parent bde4f2e commit 50c9c41
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions automated/linux/modules/modules.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,8 @@ done

get_modules_list() {
if [ -z "${MODULES_LIST}" ]; then
rm -f /tmp/find_modules.txt
for subdir in ${MODULES_SUBDIRS}; do
find /lib/modules/"$(uname -r)"/kernel/"${subdir}" -type f -name '*.ko*' | tee -a /tmp/find_modules.txt
done
subdir=$(echo "${MODULES_SUBDIRS}" | tr ' ' '|')
grep -E "kernel/(${subdir})" /lib/modules/"$(uname -r)"/modules.order | tee /tmp/find_modules.txt
split --verbose --numeric-suffixes=1 -n l/"${SHARD_INDEX}"/"${SHARD_NUMBER}" /tmp/find_modules.txt > /tmp/shardfile
echo "============== Tests to run ==============="
cat /tmp/shardfile
Expand Down

0 comments on commit 50c9c41

Please sign in to comment.