Merge lp:~brendan-donegan/checkbox/remove_ftp_check into lp:checkbox

Proposed by Brendan Donegan
Status: Merged
Merged at revision: 1054
Proposed branch: lp:~brendan-donegan/checkbox/remove_ftp_check
Merge into: lp:checkbox
Diff against target: 50 lines (+6/-5)
2 files modified
debian/changelog (+3/-0)
scripts/network_check (+3/-5)
To merge this branch: bzr merge lp:~brendan-donegan/checkbox/remove_ftp_check
Reviewer Review Type Date Requested Status
Daniel Manrique (community) Approve
Review via email: mp+76176@code.launchpad.net

Description of the change

This branch removes the FTP part of the network_check script and keeps the HTTP bit. FTP is more likely to get blocked by firewalls and a passing HTTP test and failing FTP test in combination confuses users and tells us nothing about HW support.

To post a comment you must log in.
1052. By Brendan Donegan

Added entry to debian changelog.

Revision history for this message
Daniel Manrique (roadmr) wrote :

I tested this and seems to work as advertised. Merging, thanks!

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'debian/changelog'
2--- debian/changelog 2011-09-20 15:42:18 +0000
3+++ debian/changelog 2011-09-20 16:11:25 +0000
4@@ -1,5 +1,8 @@
5 checkbox (0.12.8) oneiric; urgency=low
6
7+ [Brendan Donegan]
8+ * Remove test for FTP connection from network_check script (LP: #854222)
9+
10 [Daniel Manrique]
11 * Restored _recover attribute, re-enabling welcome and test selection
12 screens (LP: #852204)
13
14=== modified file 'scripts/network_check'
15--- scripts/network_check 2010-06-17 19:40:31 +0000
16+++ scripts/network_check 2011-09-20 16:11:25 +0000
17@@ -1,6 +1,6 @@
18 #!/usr/bin/python
19 """
20-Check that it's possible to establish http and ftp connections against
21+Check that it's possible to establish a http connection against
22 ubuntu.com
23 """
24 from subprocess import call
25@@ -22,7 +22,7 @@
26
27 def main():
28 """
29- Check HTTP and FTP connections
30+ Check HTTP and connection
31 """
32 usage = 'Usage %prog [OPTIONS]'
33 parser = OptionParser(usage)
34@@ -33,8 +33,7 @@
35
36 (options,args) = parser.parse_args()
37
38- url = {"http": "http://cdimage.ubuntu.com/daily/current/",
39- "ftp": "ftp://cdimage.ubuntu.com/cdimage/daily/current/",}
40+ url = { "http": "http://cdimage.ubuntu.com/daily/current/" }
41
42 results = {}
43 for protocol, value in url.iteritems():
44@@ -42,7 +41,6 @@
45
46 bool2str = {True: 'Success', False: 'Failed'}
47 message = ("HTTP connection: %(http)s\n"
48- "FTP connection: %(ftp)s\n"
49 % dict([(protocol, bool2str[value])
50 for protocol, value in results.iteritems()]))
51

Subscribers

People subscribed via source and target branches