commit | 4b9ac392412c58070408aaa7deb9606e46646cc9 | [log] [tgz] |
---|---|---|
author | Lei YU <mine260309@gmail.com> | Sat Oct 12 11:02:26 2019 +0800 |
committer | Lei YU <mine260309@gmail.com> | Tue Oct 29 11:24:04 2019 +0800 |
tree | 4bf605238e8c3398dc872a09941bcc7a342fcc26 | |
parent | 6520748d82541cc231a56350e18e9ac1585e3599 [diff] |
utils: Add function to check if PSU is associated Add a helper function to check if a PSU is in an association list, which will be used in future commits to check if a PSU is running a software image. Tested: added unit test case and verify it passes. Signed-off-by: Lei YU <mine260309@gmail.com> Change-Id: I99b5d3d8d09f8e09a1eb42ba104a4804b7214cf1
phosphor-psu-code-mgmt is a service to provide management for PSU code, including:
meson build/ && ninja -C build
meson -Doe-sdk=enabled -Dtests=enabled build/ ninja -C build/ test # Meson skips running the case due to it thinks it's cross compiling # Manually run the tests for t in `find build/test/ -maxdepth 1 -name "test_*"`; do ./$t || break ; done