test/udev-test.pl: use computed devnode name
authorMartin Wilck <mwilck@suse.com>
Tue, 24 Apr 2018 07:38:26 +0000 (09:38 +0200)
committerThe Plumber <50238977+systemd-rhel-bot@users.noreply.github.com>
Mon, 25 Jan 2021 14:05:18 +0000 (15:05 +0100)
commit5f34ea55a8c6723240eb1641a655db7df3c428a2
tree0a63612e636546c10e0eb68888aa17b1371ae5df
parent618d56c7ac8bd8cd701344a0eaca8373a78dea95
test/udev-test.pl: use computed devnode name

More often than not, the created devnode is the basename of the
sysfs entry. The "devnode" device may be used to override the
auto-detected node name.

Permissions and major/minor number are now verified on the devnode
itself, not on symlinks.

For those tests where exp_name is set to the computed devnode name,
the explicit "exp_name" can be removed. "exp_name" is only required for
symlinks.

This allows separate testing for devnodes and symlinks an a follow-up
patch.

(cherry picked from commit f0dccf01a7b4e72278e14effd74782ea83d0a73b)

Related: #1642728
test/udev-test.pl