Skip to content

Commit

Permalink
tests: fix 07autoassemble
Browse files Browse the repository at this point in the history
Block device check in testdev() is not sufficient as it does not account
for symlinks. Fix the check to use lsblk instead.

Signed-off-by: Mateusz Kusiak <[email protected]>
  • Loading branch information
dancesWithMachines committed Dec 6, 2024
1 parent 44a67bf commit fc0a7e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/func.sh
Original file line number Diff line number Diff line change
Expand Up @@ -445,7 +445,7 @@ no_errors() {

# basic device test
testdev() {
[ -b $1 ] || die "$1 isn't a block device."
lsblk -no name $1 || die "$1 isn't a block device."
[ "$DEVTYPE" == "disk" ] && return 0
udevadm settle
dev=$1
Expand Down

0 comments on commit fc0a7e1

Please sign in to comment.