Add test for SSID that is too long
Also account for change to error message for invalid passphrase.
Also abort immediately if Connect() call fails. This needs to
be pushed at the same time as 6486022
TEST=SecMat,MatFunc
BUG=chromium-os:11668
Change-Id: Ia2cac6b9db15a7cab5f11a705b93fb47812c0f35
Review URL: http://codereview.chromium.org/6484016
diff --git a/server/site_wlan_connect.py b/server/site_wlan_connect.py
index bf10e5d..df5ae5a 100644
--- a/server/site_wlan_connect.py
+++ b/server/site_wlan_connect.py
@@ -101,6 +101,9 @@
self.Debug('Service was already in progress (state=%s)' %
service.GetProperties().get('State'))
connect_quirks['in_progress'] = 1
+ else:
+ print 'FAIL(acquire): DBus exception in Connect() %s' % e
+ ErrExit(2)
self.service_handle = service
return service