Skip to content
Snippets Groups Projects
Commit 4f45d401 authored by Guillaume Valadon's avatar Guillaume Valadon Committed by GitHub
Browse files

Merge pull request #693 from gpotter2/fix-tests-1

[tests] Remove stuck test
parents 22a55b62 299bd5e0
No related branches found
No related tags found
No related merge requests found
...@@ -246,7 +246,7 @@ class WinProgPath(ConfClass): ...@@ -246,7 +246,7 @@ class WinProgPath(ConfClass):
env="SystemRoot") env="SystemRoot")
if self.wireshark: if self.wireshark:
manu_path = load_manuf(os.path.sep.join(self.wireshark.split(os.path.sep)[:-1])+os.path.sep+"manuf") manu_path = load_manuf(os.path.sep.join(self.wireshark.split(os.path.sep)[:-1])+os.path.sep+"manuf")
scapy.data.MANUFDB = conf.manufdb = MANUFDB = manu_path scapy.data.MANUFDB = conf.manufdb = manu_path
self.os_access = (self.powershell is not None) or (self.cscript is not None) self.os_access = (self.powershell is not None) or (self.cscript is not None)
......
...@@ -54,12 +54,15 @@ assert(os.system(IPTABLE_RULE % ('D', SECDEV_IP4)) == 0) ...@@ -54,12 +54,15 @@ assert(os.system(IPTABLE_RULE % ('D', SECDEV_IP4)) == 0)
assert(success) assert(success)
= Supersocket _flush_fd # TODO: fix this test (randomly stuck)
~ needs_root linux # ex: https://travis-ci.org/secdev/scapy/jobs/247473497
import select #= Supersocket _flush_fd
#~ needs_root linux
from scapy.arch.linux import _flush_fd #
socket = conf.L2listen() #import select
select.select([socket],[],[],2) #
_flush_fd(socket.ins) #from scapy.arch.linux import _flush_fd
#socket = conf.L2listen()
#select.select([socket],[],[],2)
#_flush_fd(socket.ins)
...@@ -331,8 +331,8 @@ if not WINDOWS: ...@@ -331,8 +331,8 @@ if not WINDOWS:
= Test manuf DB methods = Test manuf DB methods
~ manufdb ~ manufdb
assert(MANUFDB._resolve_MAC("00:00:0F:01:02:03") == "Next:01:02:03") assert(conf.manufdb._resolve_MAC("00:00:0F:01:02:03") == "Next:01:02:03")
assert(MANUFDB._get_short_manuf("00:00:0F:01:02:03") == "Next") assert(conf.manufdb._get_short_manuf("00:00:0F:01:02:03") == "Next")
assert(in6_addrtovendor("fe80::0200:0fff:fe01:0203").lower().startswith("next")) assert(in6_addrtovendor("fe80::0200:0fff:fe01:0203").lower().startswith("next"))
= Test utility functions - network related = Test utility functions - network related
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment