CI: fix test case test_base_mac_address

This commit is contained in:
Chen Yudong 2022-12-21 10:39:15 +08:00
parent 6ca7a3ab25
commit 677e2fb19a

View File

@ -31,7 +31,7 @@ def test_base_mac_address(dut: Dut) -> None:
# Format the new string to match the expected output from the app (includes stripping leading zeroes) # Format the new string to match the expected output from the app (includes stripping leading zeroes)
return ', '.join('0x{}'.format(hex_string[i:i + 2].lstrip('0')) for i in range(0, len(hex_string), 2)) return ', '.join('0x{}'.format(hex_string[i:i + 2].lstrip('0')) for i in range(0, len(hex_string), 2))
return ', '.join(['0x{}'.format(m.decode('utf8')) for m in mac_m[:-1]] + [hex(int(mac_m[-1], 16) + increment)]) return ', '.join(['0x{}'.format(m.decode('utf8')) for m in mac_m[:-1]] + [hex((int(mac_m[-1], 16) + increment) & 0xFF)])
sdkconfig = dut.app.sdkconfig sdkconfig = dut.app.sdkconfig