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.skip("Requires root")
class TestTAP(VppTestCase):
""" TAP Test Case """