test/udev-test.pl: use computed devnode name
authorMartin Wilck <mwilck@suse.com>
Tue, 24 Apr 2018 07:38:26 +0000 (09:38 +0200)
committerMichal Sekletár <msekleta@redhat.com>
Mon, 2 Nov 2020 10:43:14 +0000 (11:43 +0100)
commitf0dccf01a7b4e72278e14effd74782ea83d0a73b
tree9b4ef7911ab096459cd51e87cac45f36d48924b1
parent09a4062d70b3a10d022e40066e2adf09df05bbbc
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.
test/udev-test.pl