wireless_connection tests pass even when the connection test failed

Bug #944176 reported by Brendan Donegan
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Checkbox
Fix Released
Medium
Brendan Donegan

Bug Description

Running the various wireless_connection tests results in the tests passing, even though the output given in the submission is something like:

 Failed to activate ubuntu-cert-bg-open. No Internet connection

This is likely to be because the return code used to judge the test results is the last one here:

create_connection $WPA_BG_SSID --security=wpa --key=$WPA_BG_PSK; internet_test --interface=`nmcli dev status | awk '/802-11-wireless/ {print $1}'`; rm -f /etc/NetworkManager/system-connections/$WPA_BG_SSID

that is the rm -rf command.

If internet_test fails then the whole test should fail.

Related branches

Changed in checkbox:
assignee: nobody → Brendan Donegan (brendan-donegan)
status: New → In Progress
Changed in checkbox:
status: In Progress → Fix Committed
milestone: none → 0.13.4
Changed in checkbox:
importance: Undecided → Medium
Ara Pulido (ara)
Changed in checkbox:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.