Return whether windump version is correct or not
()
| 221 | |
| 222 | if conf.prog.tcpdump and conf.use_npcap: |
| 223 | def test_windump_npcap(): |
| 224 | # type: () -> bool |
| 225 | """Return whether windump version is correct or not""" |
| 226 | try: |
| 227 | p_test_windump = sp.Popen([conf.prog.tcpdump, "-help"], stdout=sp.PIPE, stderr=sp.STDOUT) # noqa: E501 |
| 228 | stdout, err = p_test_windump.communicate() |
| 229 | _windows_title() |
| 230 | _output = stdout.lower() |
| 231 | return b"npcap" in _output and b"winpcap" not in _output |
| 232 | except Exception: |
| 233 | return False |
| 234 | windump_ok = test_windump_npcap() |
| 235 | if not windump_ok: |
| 236 | log_loading.warning( |
no test coverage detected
searching dependent graphs…