martinpitt / umockdev

Mock hardware devices for creating unit tests and bug reporting
https://launchpad.net/umockdev
GNU Lesser General Public License v2.1
308 stars 55 forks source link

Fix /sys/dev/* symlinks #158

Closed martinpitt closed 2 years ago

martinpitt commented 2 years ago

Commit 1b58d24fb78e regressed these, as it included the trailing \n into the dev symlinks, like

'7:23'$'\n' -> ../../devices/virtual/block/loop23

Strip off whitespace from the recorded dev attribute to fix this.

Fixes #155