summaryrefslogtreecommitdiffstats
path: root/test/test_tap.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_tap.py')
-rw-r--r--test/test_tap.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/test_tap.py b/test/test_tap.py
index 92589789a95..2e66da30c02 100644
--- a/test/test_tap.py
+++ b/test/test_tap.py
@@ -6,10 +6,10 @@ from vpp_devices import VppTAPInterface
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.skipUnless(check_tuntap_driver_access(), "Permission denied")
+@unittest.skipIf(check_tuntap_driver_access(), "Permission denied")
class TestTAP(VppTestCase):
""" TAP Test Case """