Merge lp:~brendan-donegan/checkbox/bug944176_wireless_connection_failpass into lp:checkbox
Proposed by
Brendan Donegan
Status: | Merged |
---|---|
Merged at revision: | 1295 |
Proposed branch: | lp:~brendan-donegan/checkbox/bug944176_wireless_connection_failpass |
Merge into: | lp:checkbox |
Diff against target: |
69 lines (+8/-6) 2 files modified
debian/changelog (+2/-0) jobs/wireless.txt.in (+6/-6) |
To merge this branch: | bzr merge lp:~brendan-donegan/checkbox/bug944176_wireless_connection_failpass |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Daniel Manrique (community) | Approve | ||
Marc Tardif (community) | Needs Information | ||
Brendan Donegan (community) | Needs Resubmitting | ||
Review via email: mp+95429@code.launchpad.net |
Description of the change
This merge updates the commands used by the wireless_connection tests to always remove the SSID file from the system-connections directory, but fail if internet_test fails and pass if it passes.
To post a comment you must log in.
The commands seem helluva complicated. How about this:
trap "rm -f /etc/NetworkMan ager/system- connections/ $WPA_BG_ SSID" EXIT
create_connection $WPA_BG_SSID --security=wpa --key=$WPA_BG_PSK
internet_test --interface=`nmcli dev status | awk '/802-11-wireless/ {print $1}'`
This will always remove the SSID file and exit with the status of the last command, ie internet_test. What do you think?