tests: Do not mark proxyarp_open failed if ebtables is not available
Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
f24489d94f
commit
01c87519a3
1 changed files with 5 additions and 2 deletions
|
@ -3050,8 +3050,11 @@ def test_proxyarp_open(dev, apdev, params):
|
||||||
try:
|
try:
|
||||||
res = _test_proxyarp_open(dev, apdev, params)
|
res = _test_proxyarp_open(dev, apdev, params)
|
||||||
finally:
|
finally:
|
||||||
subprocess.call(['ebtables', '-F', 'FORWARD'])
|
try:
|
||||||
subprocess.call(['ebtables', '-F', 'OUTPUT'])
|
subprocess.call(['ebtables', '-F', 'FORWARD'])
|
||||||
|
subprocess.call(['ebtables', '-F', 'OUTPUT'])
|
||||||
|
except:
|
||||||
|
pass
|
||||||
subprocess.call(['ip', 'link', 'set', 'dev', 'ap-br0', 'down'],
|
subprocess.call(['ip', 'link', 'set', 'dev', 'ap-br0', 'down'],
|
||||||
stderr=open('/dev/null', 'w'))
|
stderr=open('/dev/null', 'w'))
|
||||||
subprocess.call(['brctl', 'delbr', 'ap-br0'],
|
subprocess.call(['brctl', 'delbr', 'ap-br0'],
|
||||||
|
|
Loading…
Add table
Reference in a new issue