Commit 07d876c
committed
Use type instead of name in thermal sensor tests (Bugfix)
Thermal zone indices can change across reboots, making name-based
identification unreliable. This change uses the zone type field
instead, ensuring consistent test execution.
Additionally, thermal zone interfaces are sometimes repurposed for
monitoring non-thermal parameters (e.g., voltages on Qualcomm RB3,
RB8 platforms). These edge cases are excluded from test plans using
regex patterns matched against the type field.
When both pre-suspend and after-suspend tests are generated from
templates, a watchdog-triggered reboot can cause zone index changes,
invalidating regex exclusions based on zone names and causing
previously excluded tests to run unexpectedly.1 parent d0f126c commit 07d876c
File tree
3 files changed
+31
-7
lines changed- contrib/checkbox-ce-oem/checkbox-provider-ce-oem
- bin
- tests
- units/thermal-sensor
3 files changed
+31
-7
lines changedLines changed: 26 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
81 | 81 | | |
82 | 82 | | |
83 | 83 | | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
84 | 100 | | |
85 | 101 | | |
86 | 102 | | |
87 | 103 | | |
88 | 104 | | |
89 | 105 | | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
90 | 112 | | |
91 | | - | |
| 113 | + | |
92 | 114 | | |
| 115 | + | |
93 | 116 | | |
94 | 117 | | |
95 | 118 | | |
| |||
167 | 190 | | |
168 | 191 | | |
169 | 192 | | |
170 | | - | |
| 193 | + | |
| 194 | + | |
171 | 195 | | |
172 | 196 | | |
173 | 197 | | |
| |||
Lines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
| 24 | + | |
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | | - | |
| 42 | + | |
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
57 | | - | |
| 57 | + | |
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
| |||
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
79 | | - | |
| 79 | + | |
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
0 commit comments