Skip to content

Commit 18d725b

Browse files
committed
tmt: Don't fail if /dev/nvme* does not exist
Robustify the amazon-ec2-utils workaround: Fedora 42 images don't seem to have /dev/nvme* any more, so don't fail on > Failed to open the device '/dev/nvme*': No such device Same fix as cockpit-project/cockpit-machines@dcdf4988e4beb7
1 parent c86c551 commit 18d725b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/browser/browser.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ fi
2727
# our tests, and only causes trouble; https://github.com/amazonlinux/amazon-ec2-utils/issues/37
2828
if rpm -q amazon-ec2-utils; then
2929
rpm -e --verbose amazon-ec2-utils
30-
# clean up the symlinks
31-
udevadm trigger /dev/nvme*
30+
# clean up the symlinks, if they exist
31+
udevadm trigger /dev/nvme* || true
3232
fi
3333

3434
if grep -q 'ID=.*fedora' /etc/os-release && [ "$PLAN" = "main" ]; then

0 commit comments

Comments
 (0)