commit | d2ce8c05fb60ab60e06f06f04c46a74e135b5889 | [log] [tgz] |
---|---|---|
author | Patrick Rohr <prohr@google.com> | Mon Aug 08 16:06:49 2022 -0700 |
committer | Patrick Rohr <prohr@google.com> | Tue Aug 09 15:48:01 2022 -0700 |
tree | 3ab1c4e40d293c7986c3c33ef62cab756dc2fa15 | |
parent | 117622173250a90a05eabeb7ee3c76fdbca17258 [diff] |
ethernet: clean up test interface tracking This change adds a isValidEthernetInterface() similar to isValidTestInterface() in place of updating the interface matching regex. This makes the code more readable. It's unfortunate that getInterfaceList() was added as a synchronous API making its behavior race-y around setting setIncludeTestInterfaces(). Test: atest EthernetManagerTest Change-Id: Ib0652654020fc3f6e965de9091c5bc960d1d4cdf