tshark: perform NPF driver check for capture only
authorPeter Wu <peter@lekensteyn.nl>
Sat, 4 Aug 2018 22:34:05 +0000 (00:34 +0200)
committerAnders Broman <a.broman58@gmail.com>
Sun, 5 Aug 2018 04:48:27 +0000 (04:48 +0000)
commit2d33cb67cc74ba30541be10794f404ec3639f875
tree8c46ae0d36149aa92b8bcd21cc2d03ffa67321a1
parent114012dc4b9ce24c3764f8830ded019a3bf8b52e
tshark: perform NPF driver check for capture only

In CI environments with no capture driver, the test_tshark_dump_glossary
test could fail because "tshark -G decodes" contains an error message.

Postpone the check until the moment where a capture is actually started.
It also no longer shows with tshark -L, -D, --version, etc.

Change-Id: I6674c6fe007c99576c777a025cd44b3f2e594b59
Reviewed-on: https://code.wireshark.org/review/28966
Petri-Dish: Peter Wu <peter@lekensteyn.nl>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
tshark.c