]> git.ipfire.org Git - thirdparty/hostap.git/commit
tests: MAC address ASCII string generation in python3 compatible manner
authorJouni Malinen <j@w1.fi>
Mon, 4 Feb 2019 10:23:45 +0000 (12:23 +0200)
committerJouni Malinen <j@w1.fi>
Mon, 4 Feb 2019 10:26:35 +0000 (12:26 +0200)
commitc37ef330d08fc8030863c2bfe910f421735af92e
tree814fdd11777923169c4182665e50c53e8e4ba430
parent0607346f1270e25214dcf9eaa3c66decc805f34a
tests: MAC address ASCII string generation in python3 compatible manner

Use struct.unpack() to get a list of int and then generate a list of
hexstr octets from it for ':'.join() to get consistent behavior for both
python2 and python3.

Signed-off-by: Jouni Malinen <j@w1.fi>
tests/hwsim/test_dbus.py