From 677e2fb19a9e1642ba78e8db1b2e832b2e79ed14 Mon Sep 17 00:00:00 2001 From: Chen Yudong Date: Wed, 21 Dec 2022 10:39:15 +0800 Subject: [PATCH] CI: fix test case test_base_mac_address --- examples/system/base_mac_address/pytest_base_mac_address.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/system/base_mac_address/pytest_base_mac_address.py b/examples/system/base_mac_address/pytest_base_mac_address.py index fd294080e9..55a1b0c1ed 100644 --- a/examples/system/base_mac_address/pytest_base_mac_address.py +++ b/examples/system/base_mac_address/pytest_base_mac_address.py @@ -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) 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