Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
tests: fix skip logic on test_tap
[vpp.git]
/
test
/
test_tap.py
diff --git
a/test/test_tap.py
b/test/test_tap.py
index
9258978
..
2e66da3
100644
(file)
--- a/
test/test_tap.py
+++ b/
test/test_tap.py
@@
-6,10
+6,10
@@
from vpp_devices import VppTAPInterface
def check_tuntap_driver_access():
def check_tuntap_driver_access():
- return os.access("/dev/net/tun", os.R_OK
or
os.W_OK)
+ return os.access("/dev/net/tun", os.R_OK
and
os.W_OK)
-@unittest.skip
Unless
(check_tuntap_driver_access(), "Permission denied")
+@unittest.skip
If
(check_tuntap_driver_access(), "Permission denied")
class TestTAP(VppTestCase):
""" TAP Test Case """
class TestTAP(VppTestCase):
""" TAP Test Case """