shill: test-scripts: don't lookup Service names by substring
It's an extremely common pattern to have Wifi SSIDs in a given area
where one network is named $foo and another is named $foo-$bar (for some
values of $foo and $bar; e.g., bar == 5G). The test scripts currently
can't tell the difference between those when you try, e.g.,
"connect-service $foo". It might choose $foo or $foo-bar depending on
Python implementation details.
Let's disambiguate this for scripts that accept a Service arg by
stopping to use substrings.
BUG=chromium:735524
TEST=connect-service, disconnect-service, set-service-property for
SSID $foo when $foo-bar exists in the same area
Change-Id: Ic424d43ea7e226536480194d981ad79599281b53
Signed-off-by: Brian Norris <briannorris@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/583781
Reviewed-by: Ben Chan <benchan@chromium.org>
4 files changed