Browse Source

CI: fix test case test_base_mac_address

Chen Yudong 3 years ago
parent
commit
677e2fb19a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      examples/system/base_mac_address/pytest_base_mac_address.py

+ 1 - 1
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