test: install modinfo to test image
authorYu Watanabe <watanabe.yu+github@gmail.com>
Sat, 18 May 2024 19:54:25 +0000 (04:54 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Sat, 18 May 2024 20:08:31 +0000 (05:08 +0900)
Follow-up for 6c2d47d6d3ad25ffd7527c7f4de31457ee1b25d8.

Fixes the following unexpected skip:
```
[    6.163670] TEST-64-UDEV-STORAGE.sh[596]: + modinfo btrfs
[    6.164102] TEST-64-UDEV-STORAGE.sh[726]: /usr/lib/systemd/tests/testdata/units/TEST-64-UDEV-STORAGE.sh: line 726: modinfo: command not found
[    6.164683] TEST-64-UDEV-STORAGE.sh[727]: + echo 'This test requires the btrfs kernel module but it is not installed, skipping the test'
[    6.165069] TEST-64-UDEV-STORAGE.sh[728]: + tee --append /skipped
[    6.166801] TEST-64-UDEV-STORAGE.sh[728]: This test requires the btrfs kernel module but it is not installed, skipping the test
[    6.167177] TEST-64-UDEV-STORAGE.sh[596]: + exit 77
```

test/test-functions

index e1f65e26a17636ff0c56af545c499dc1e237834e..a34438b051163e008e95a21d02c4572ee140cba4 100644 (file)
@@ -203,6 +203,7 @@ BASICTOOLS=(
     mkfifo
     mknod
     mktemp
+    modinfo
     modprobe
     mount
     mountpoint