bluetooth_after_suspend fails on systems without bluetooth
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Checkbox |
Fix Released
|
High
|
Daniel Manrique | ||
checkbox (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Somewhat related to bug 836756.
If there's no bluetooth device present on the system, the bluetooth_
The bluetooth_
hcitool dev | tail -n+2 | awk '{print $2}'
If there's no bluetooth adapter, the command also returns an empty string.
However if you try to grep an empty file (not even a carriage return, nothing) grep will return error. Thus, when comparing the empty string against a blank file, this command returns an error (exit code 1):
grep -q `hcitool dev | tail -n+2 | awk '{print $2}'` $CHECKBOX_
To test the behavior:
echo -n "" >/tmp/test.txt
grep "" /tmp/test.txt
echo $?
Expected return code: 0
Actual return code: 1
So some more magic may be needed to get this to work correctly, perhaps using diff instead of grep (see the other *_before_suspend jobs).
Related branches
- Marc Tardif (community): Approve
-
Diff: 23 lines (+2/-1)2 files modifieddebian/changelog (+1/-0)
jobs/suspend.txt.in (+1/-1)
- Mathieu Trudel-Lapierre: Approve
- Ubuntu branches: Pending requested
-
Diff: 12410 lines (+2530/-1911)31 files modifiedcheckbox/job.py (+1/-1)
checkbox/lib/transport.py (+14/-4)
checkbox_gtk/gtk_interface.py (+5/-2)
data/whitelists/default.whitelist (+3/-14)
debian/changelog (+56/-0)
debian/po/de.po (+28/-16)
debian/po/it.po (+10/-9)
debian/po/pt_BR.po (+9/-7)
gtk/checkbox-gtk.desktop.in (+1/-1)
jobs/mediacard.txt.in (+6/-6)
jobs/miscellanea.txt.in (+2/-2)
jobs/suspend.txt.in (+3/-3)
plugins/apport_prompt.py (+2/-0)
plugins/intro_prompt.py (+14/-7)
plugins/launchpad_exchange.py (+6/-2)
plugins/suites_prompt.py (+4/-0)
po/de.po (+457/-301)
po/gl.po (+274/-301)
po/hu.po (+16/-16)
po/it.po (+36/-37)
po/pt_BR.po (+431/-339)
po/ru.po (+491/-321)
po/sl.po (+461/-227)
po/zh_HK.po (+126/-213)
scripts/connect_wireless (+4/-3)
scripts/cpu_scaling_test (+50/-9)
scripts/internet_test (+2/-2)
scripts/network_check (+3/-5)
scripts/reconnect (+0/-5)
scripts/resolution_test (+14/-57)
scripts/usb_test (+1/-1)
Changed in checkbox: | |
importance: | Undecided → High |
status: | New → In Progress |
assignee: | nobody → Daniel Manrique (roadmr) |
milestone: | none → 0.12.8 |
Changed in checkbox: | |
status: | In Progress → Fix Committed |
Changed in checkbox: | |
status: | Fix Committed → Fix Released |
This bug was fixed in the package checkbox - 0.12.8
---------------
checkbox (0.12.8) oneiric; urgency=low
New upstream release (LP: #862579):
[Brendan Donegan] playback_ after_suspend from Ubuntu Friendly whitelist (LP: #855540) resolution test to fail (LP: #855599) devices_ test from Ubuntu Friendly whitelist since bonnie++ (which it uses) is not installed by default (LP: #855841)
* Remove test for FTP connection from network_check script (LP: #854222)
* Update a parameter in usb_test to have it run faster.
* Remove record_
* Fix minor typo in multi-monitor friendly resolution_test script which caused
minimum_
* Remove storage_
* Changed description and name to reflect Ubuntu Friendly branding. Now when a user searches for Ubuntu Friendly in the lens, Checkbox will appear (LP: #852036)
* Reset the selections at the test suite prompt if No is selected at the recover prompt (LP: #861208)
* Save the connection name(s) instead of the interface name so that they can be reconnected to properly after the wireless before/after suspend tests have completed (LP: #861502)
* Make connect_wireless use the UUID of the connection instead of the name for greater reliability (LP: #862190)
[Daniel Manrique]
* Restored _recover attribute, re-enabling welcome and test selection
screens (LP: #852204)
* Remove memory/test from the Ubuntu Friendly whitelist (LP: #853799)
* Use diff instead of grep, better comparing of empty files (LP: #852014)
* Apport integration: new mandatory "tag" value in ApportOptions (LP: #852201)
* Add warning prior to starting the tests (LP: #855328)
* Apport integration: Fix instantiation of Gtk.RadioButton, needed due
to PyGI related API changes (LP: #805679)
* Remove ping -R parameter that apparently caused ICMP packets to be dropped
by some routers (LP: #861404)
[ Evan Broder ]
* Replace resolution_test with an implementation which uses GdkScreen to
be multimonitor-aware (LP: #632987)
[Jeff Lane] suspend_ advanced
* Fix names of optical drive tests and remove a non-existing test from the
whitelist (LP: #854808)
* Fix wireless_*_suspend jobs so they recreate iface file instead of append
each time (LP: #855845)
(LP: #852201)
* Clarify better the intend of the is_laptop question (LP: #861844)
* Fixed dependencies for tests that depend on suspend/
(LP: #860651)
[Tim Chen]
* Fix cpu_scaling_test (LP: #811177)
[Ara Pulido] file-transfer from the list of tests to run, since due to
* Avoid connect_wireless messing with AP with similar names (LP: #861538)
* Remove bluetooth/
bug 834348 it always fails.
[Marc Tardif]
* Added support for wildcards when verifying the transport certificate.
* Applying depends across suites (LP: #861218)
-- Daniel Manrique <email address hidden> Thu, 29 Sep 2011 13:12:01 -0400