summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorFrantisek Sumsal <frantisek@sumsal.cz>2023-03-09 13:32:56 +0100
committerFrantisek Sumsal <frantisek@sumsal.cz>2023-03-09 13:32:56 +0100
commitcca295ab7ac32ddc9626c0e3a935d54630445050 (patch)
treeee2e7664b043096dc1440700f6ea6e6f8bbd1e6c /test
parent72f6d0e556d29b695369493a909562ff1325f8cd (diff)
downloadsystemd-cca295ab7ac32ddc9626c0e3a935d54630445050.tar.gz
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
Diffstat (limited to 'test')
-rwxr-xr-xtest/units/testsuite-17.10.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/units/testsuite-17.10.sh b/test/units/testsuite-17.10.sh
index 6978d2a1d6..8ff214baee 100755
--- a/test/units/testsuite-17.10.sh
+++ b/test/units/testsuite-17.10.sh
@@ -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