tests: Fix p2p_ext_discovery_go to write to logger, not stdout

The error case debug print should go to logger.

Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
Jouni Malinen 2019-01-02 12:39:00 +02:00
parent 720a2e7906
commit e3523cece4

View file

@ -92,7 +92,7 @@ def test_p2p_ext_discovery_go(dev):
raise Exception("Device discovery timed out") raise Exception("Device discovery timed out")
peer = dev[1].get_peer(addr0) peer = dev[1].get_peer(addr0)
if peer['vendor_elems'] != "dd050011223344dd06001122335566": if peer['vendor_elems'] != "dd050011223344dd06001122335566":
print peer['vendor_elems'] logger.info("Peer vendor_elems: " + peer['vendor_elems'])
raise Exception("Vendor elements not reported correctly") raise Exception("Vendor elements not reported correctly")
finally: finally:
dev[0].request("VENDOR_ELEM_REMOVE 2 *") dev[0].request("VENDOR_ELEM_REMOVE 2 *")