1
0
mirror of https://github.com/systemd/systemd.git synced 2025-03-09 12:58:26 +03:00

test: don't fail if we can't remove the scsi_debug module

Let's make the cleanup 'best effort' operation, as sometimes we might
not be able to remove the scsi_debug module, and we don't really care
if it stays loaded:

[   88.521333] testsuite-17.sh[1827]: ID_TEST=test
[   88.522015] testsuite-17.sh[1679]: + rmmod scsi_debug
[   88.524795] testsuite-17.sh[1828]: rmmod: ERROR: Module scsi_debug is in use
[   88.527786] testsuite-17.sh[1679]: + cleanup_17_10
This commit is contained in:
Frantisek Sumsal 2023-03-09 13:32:56 +01:00
parent 72f6d0e556
commit cca295ab7a

View File

@ -145,8 +145,8 @@ EOF
udevadm test-builtin hwdb "$scsidev"
rmmod scsi_debug
rm -f /etc/udev/hwdb.d/99-test.hwdb
rmmod scsi_debug || :
rm -fv /etc/udev/hwdb.d/99-test.hwdb
systemd-hwdb update
fi