CodeConstruct / dbus-sensors

D-Bus configurable sensor scanning applications
Apache License 2.0
0 stars 3 forks source link

enforce unit tests for nvme sensor #2

Open drakedog2008 opened 11 months ago

drakedog2008 commented 11 months ago

The unit test here is to manually trigger a destruction of nvme instance and check the resource recollection status. Is it designed to prevent the resource is held by some async event and never get the chance to release.

The unit test is using ObjectMapper as a observer so it require Dbus and O-M to be enabled in the docker image. We could enforce the feature for presubmit.

https://gbmc.googlesource.com/meta-gbmc-staging/+/refs/heads/gbmc-release-23.18.x/recipes-phosphor/sensors/dbus-sensors/0030-nvmesensor-add-unit-test.patch