tests: Fix tshark refactoring
authorJouni Malinen <jouni@qca.qualcomm.com>
Fri, 30 Jan 2015 13:28:59 +0000 (15:28 +0200)
committerJouni Malinen <j@w1.fi>
Fri, 30 Jan 2015 16:55:22 +0000 (18:55 +0200)
commit2076846cc4aecbe82e4feb45fba7800b1854700b
treebdfdb7e2b920cfb3d6f1156ec1227c13c345fc2a
parenta565e03086bf230ebb4e61592b703479445181be
tests: Fix tshark refactoring

Commit 2e1d7386e2766b57bc295702af543cc784a0d2be ('tests: Refactor tshark
running') added a helper function for running tshark. However, it did
not use the filter argument correctly, added an extra -Tfields on the
command line, and failed to use global variable. In practice, this ended
up disabling all the tshark sniffer checks. Fix that by using the filter
argument from the caller and marking the _tshark_filter_arg global.

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
tests/hwsim/tshark.py