/proc/bus/usb doesn't exist anymore

This commit is contained in:
Kovid Goyal 2020-10-15 22:21:25 +05:30
parent 191ce078e7
commit 6bcbd1b42e
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -104,7 +104,7 @@ class BuildTest(unittest.TestCase):
def test_plugins(self):
exclusions = set()
if islinux and (not os.path.exists('/dev/bus/usb') and not os.path.exists('/proc/bus/usb')):
if islinux and not os.path.exists('/dev/bus/usb'):
# libusb fails to initialize in containers without USB subsystems
exclusions.update(set('libusb libmtp'.split()))
for name in plugins: