teemtee / tmt

Test Management Tool
MIT License
86 stars 130 forks source link

Extend hardware selection based on presence of a battery #2862

Open kurik opened 7 months ago

kurik commented 7 months 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 7 months ago

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