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 54 forks source link

umockdev: Fix race with worker thread accessing $UMOCKDEV_DIR #207

Closed martinpitt closed 1 year ago

martinpitt commented 1 year ago

Set the env variable before starting the worker thread, to ensure that it sees it.

Fixes #206

martinpitt commented 1 year ago

I'm not 100% sure if that will actually fix the issue, but it willl at least not make matters worse. The failed fedora:latest is due to https://bugzilla.redhat.com/show_bug.cgi?id=2166960.