summaryrefslogtreecommitdiffstats
path: root/test/test_tap.py
diff options
context:
space:
mode:
authorPaul Vinciguerra <pvinci@vinciconsulting.com>2019-12-16 18:24:24 -0500
committerDave Barach <openvpp@barachs.net>2019-12-24 12:49:55 +0000
commitde35cdb7780cf313170397a55f2cef0959e70068 (patch)
treeb27d5e4d98b6fd8be6e6e562284a424bead10aab /test/test_tap.py
parent5002e7f26f4f2f94af56e0d4b26124fb876e2a3f (diff)
tests: fix skip logic on test_tap
log.txt message: 17:52:59,969 API call failed, expected 0 return value instead of -13 in tap_create_v2_reply(_0=58, context=77019, retval=-13, sw_if_index=4294967295) Test was failing with log message: tap: tap0: tap_create_if: ioctl(TUNSETIFF): Operation not permitted Type: test Change-Id: I5bcd9d2b0c870ea5eef92b79314b97821399722f Signed-off-by: Paul Vinciguerra <pvinci@vinciconsulting.com>
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 """