We were sending the add uevent before setting up the binary/link
attributes and setting up the device node, which causes race conditions
in consumers.
To fix that, introduce an internal add_devicev_no_uevent() method which does
everything from testbed_add_devicev() except sending the uevent. Use
that new helper from both that function and add_from_string() after everything
is ready.
We were sending the
add
uevent before setting up the binary/link attributes and setting up the device node, which causes race conditions in consumers.To fix that, introduce an internal
add_devicev_no_uevent()
method which does everything from testbed_add_devicev() except sending the uevent. Use that new helper from both that function and add_from_string() after everything is ready.Fixes #173