diff --git a/tools/test-runner b/tools/test-runner index 6c7a7e45..a1f86c00 100755 --- a/tools/test-runner +++ b/tools/test-runner @@ -853,7 +853,11 @@ class TestContext(Namespace): def discover_radios(self): phys = [] - iw = pyroute2.iwutil.IW() + + try: + iw = pyroute2.iwutil.IW() + except: + iw = pyroute2.IW() attrs = [phy['attrs'] for phy in iw.list_wiphy()]