Skip to content

Commit 8241d6f

Browse files
jamin-aspeedlegoater
authored andcommitted
tests/functional/aspeed: Update temperature hwmon path
Modified the temperature hwmon path to use a wildcard to handle different SDK versions: "cat /sys/bus/i2c/devices/1-004d/hwmon/hwmon*/temp1_input". Signed-off-by: Jamin Lin <[email protected]> Reviewed-by: Cédric Le Goater <[email protected]> Link: https://lore.kernel.org/qemu-devel/[email protected] Signed-off-by: Cédric Le Goater <[email protected]>
1 parent 827eecb commit 8241d6f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/functional/test_aarch64_aspeed.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,11 +83,11 @@ def start_ast2700_test(self, name):
8383
'echo lm75 0x4d > /sys/class/i2c-dev/i2c-1/device/new_device ',
8484
'i2c i2c-1: new_device: Instantiated device lm75 at 0x4d');
8585
exec_command_and_wait_for_pattern(self,
86-
'cat /sys/class/hwmon/hwmon20/temp1_input', '0')
86+
'cat /sys/bus/i2c/devices/1-004d/hwmon/hwmon*/temp1_input', '0')
8787
self.vm.cmd('qom-set', path='/machine/peripheral/tmp-test',
8888
property='temperature', value=18000)
8989
exec_command_and_wait_for_pattern(self,
90-
'cat /sys/class/hwmon/hwmon20/temp1_input', '18000')
90+
'cat /sys/bus/i2c/devices/1-004d/hwmon/hwmon*/temp1_input', '18000')
9191

9292
def test_aarch64_ast2700_evb_sdk_v09_03(self):
9393
self.set_machine('ast2700-evb')

0 commit comments

Comments
 (0)