teemtee / tmt

Test Management Tool
MIT License
76 stars 112 forks source link

Extend hardware selection based on presence of a battery #2862

Open kurik opened 1 month ago

kurik commented 1 month ago

Hi there,

on PCP project we are gathering some metrics from batteries (used typically on laptops). To enable automated testing I would like to have the opportunity to select relevant hardware to run tests on. Such a hardware needs to have a battery and a battery controller present and communicating with the system.

On Beaker I am using Device/Description contains battery filter, however it is not fully reliable. For the reliable selection I need to run lshw | grep -i battery on booted system and check what the lshw returns.

happz commented 1 month ago

No Beaker job XML filter at hand, we would need to experiment with Beaker to create one.