diff mbox series

tests: owe: allow hex integers from tshark

Message ID 20191105235810.162579-1-briannorris@chromium.org
State Accepted
Headers show
Series tests: owe: allow hex integers from tshark | expand

Commit Message

Brian Norris Nov. 5, 2019, 11:58 p.m. UTC
Old versions of tshark would dump these values as hex. Allow parsing as
either decimal or hex.

Signed-off-by: Brian Norris <briannorris@chromium.org>
---
 tests/hwsim/test_owe.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

Comments

Jouni Malinen Dec. 22, 2019, 5:04 p.m. UTC | #1
On Tue, Nov 05, 2019 at 03:58:10PM -0800, Brian Norris wrote:
> Old versions of tshark would dump these values as hex. Allow parsing as
> either decimal or hex.

Thanks, applied.
diff mbox series

Patch

diff --git a/tests/hwsim/test_owe.py b/tests/hwsim/test_owe.py
index ee0318204b8e..091e91756391 100644
--- a/tests/hwsim/test_owe.py
+++ b/tests/hwsim/test_owe.py
@@ -414,7 +414,8 @@  def test_owe_limited_group_set_pmf(dev, apdev, params):
     logger.info("Association Response frame status codes: " + str(status))
     if len(status) != 3:
         raise Exception("Unexpected number of Association Response frames")
-    if int(status[0]) != 77 or int(status[1]) != 77 or int(status[2]) != 0:
+    if (int(status[0], base=0) != 77 or int(status[1], base=0) != 77 or
+        int(status[2], base=0) != 0):
         raise Exception("Unexpected Association Response frame status code")
 
 def test_owe_group_negotiation(dev, apdev):