tests: Fix p2ps_connect_adv_go_pin_method case
authorAndrei Otcheretianski <andrei.otcheretianski@intel.com>
Wed, 10 Jun 2015 08:43:38 +0000 (11:43 +0300)
committerJouni Malinen <j@w1.fi>
Sun, 14 Jun 2015 20:16:55 +0000 (23:16 +0300)
commitce394d33e78fcc091424a7a5d5872d0a9a4c5752
tree21755f82dbff7c70a1a659df53e3977cdfeb8dcd
parent8f524099728fa93130f3b3cc62a19ede50e6a816
tests: Fix p2ps_connect_adv_go_pin_method case

test_p2ps_connect_adv_go_pin_method() expects that
p2ps_provision_keypad_method() returns P2PS-PROV-DONE with details
needed for a connection. However, this event was overridden which
resulted in an incorrect test flow skipping the connection
establishement. The test would pass, however, without really trying to
connect. Fix this by returning the correct event.

Signed-off-by: Andrei Otcheretianski <andrei.otcheretianski@intel.com>
Reviewed-by: Ilan Peer <ilan.peer@intel.com>
tests/hwsim/test_p2ps.py