Merge lp:~patrickmwright/ubuntu-server-iso-testing/dl-lucid into lp:ubuntu-server-iso-testing

Proposed by Patrick Wright
Status: Merged
Merged at revision: 226
Proposed branch: lp:~patrickmwright/ubuntu-server-iso-testing/dl-lucid
Merge into: lp:ubuntu-server-iso-testing
Diff against target: 325 lines (+264/-0)
8 files modified
download-latest-test-iso.py (+6/-0)
templates.kernel/preseeds-common/base (+3/-0)
templates.kernel/test_cases/generic-proposed/preseed (+56/-0)
templates.kernel/test_cases/generic-proposed/test (+29/-0)
templates.kernel/test_cases/server-proposed/preseed (+56/-0)
templates.kernel/test_cases/server-proposed/test (+29/-0)
templates.kernel/test_cases/virtual-proposed/preseed (+56/-0)
templates.kernel/test_cases/virtual-proposed/test (+29/-0)
To merge this branch: bzr merge lp:~patrickmwright/ubuntu-server-iso-testing/dl-lucid
Reviewer Review Type Date Requested Status
Ubuntu Server Iso Testing Developers Pending
Review via email: mp+68479@code.launchpad.net

Description of the change

Needed to account for Lucid cdimages url path

see link the best view of the changes:

http://bazaar.launchpad.net/~patrickmwright/ubuntu-server-iso-testing/dl-lucid/revision/225?remember=223&compare_revid=223

To post a comment you must log in.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'download-latest-test-iso.py'
2--- download-latest-test-iso.py 2011-06-21 12:19:18 +0000
3+++ download-latest-test-iso.py 2011-07-19 22:39:30 +0000
4@@ -104,6 +104,8 @@
5 dest='no_act', help='compute everything but don\'t actually download')
6 parser.add_option('-u', '--url', dest="base_url", default=BASE_URL,
7 help="Base URL for cdimage retrieval website (default=%s)" % BASE_URL)
8+parser.add_option('-c', '--custom-url', dest="custom_url", default=False,
9+ help="Full URL for cdimage retrieval website")
10
11 (options, args) = parser.parse_args()
12
13@@ -127,6 +129,10 @@
14 elif options.variant == 'alternate':
15 l_url = ALTERNATE_URL
16
17+# override url setting if custom url is provided
18+if options.custom_url:
19+ l_url = options.custom_url
20+
21 # Check options for architectures
22 l_archs = []
23 if options.arch == 'all':
24
25=== modified file 'templates.kernel/preseeds-common/base'
26--- templates.kernel/preseeds-common/base 2011-06-14 10:00:59 +0000
27+++ templates.kernel/preseeds-common/base 2011-07-19 22:39:30 +0000
28@@ -152,6 +152,9 @@
29 # add a hostname to use a different server than security.ubuntu.com.
30 d-i apt-setup/security_host string
31
32+{% block additional_repositories %}
33+{% endblock %}
34+
35 # Additional repositories, local[0-9] available
36 #d-i apt-setup/local0/repository string http://server/localrep/ ./
37 #d-i apt-setup/local0/comment string Comment
38
39=== added directory 'templates.kernel/test_cases/generic-proposed'
40=== added file 'templates.kernel/test_cases/generic-proposed/preseed'
41--- templates.kernel/test_cases/generic-proposed/preseed 1970-01-01 00:00:00 +0000
42+++ templates.kernel/test_cases/generic-proposed/preseed 2011-07-19 22:39:30 +0000
43@@ -0,0 +1,56 @@
44+#
45+# Copyright (C) 2010, Canonical Ltd (http://www.canonical.com/)
46+#
47+# This file is part of ubuntu-server-iso-testing.
48+#
49+# ubuntu-server-iso-testing is free software: you can redistribute it
50+# and/or modify it under the terms of the GNU General Public License
51+# as published by the Free Software Foundation, either version 3 of
52+# the License, or (at your option) any later version.
53+#
54+# ubuntu-server-iso-testing is distributed in the hope that it will
55+# be useful, but WITHOUT ANY WARRANTY; without even the implied warranty
56+# of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
57+# GNU General Public License for more details.
58+#
59+# You should have received a copy of the GNU General Public License
60+# along with ubuntu-server-iso-testing. If not, see
61+# <http://www.gnu.org/licenses/>.
62+#
63+
64+{% extends "base" %}
65+
66+{% block kernel_flavor %}
67+d-i base-installer/kernel/override-image string linux-generic
68+{% endblock %}
69+
70+{% block pkgsel_first %}
71+d-i pkgsel/include string openssh-server python-couchdb subunit python-subunit python-junitxml ltp build-essential
72+d-i pkgsel/update-policy select No automatic updates
73+{% endblock %}
74+
75+{% block d_i_answers %}
76+postfix postfix/mailname string {{ hostname }}
77+postfix postfix/tlsmgr_upgrade_warning boolean
78+postfix postfix/recipient_delim string +
79+postfix postfix/main_mailer_type select Internet Site
80+postfix postfix/retry_upgrade_warning boolean
81+# Install postfix despite an unsupported kernel?
82+postfix postfix/kernel_version_warning boolean
83+postfix postfix/relayhost string
84+postfix postfix/procmail boolean false
85+postfix postfix/bad_recipient_delimiter error
86+postfix postfix/chattr boolean false
87+postfix postfix/root_address string
88+postfix postfix/rfc1035_violation boolean false
89+postfix postfix/mydomain_warning boolean
90+postfix postfix/mynetworks string 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
91+postfix postfix/destinations string {{ hostname }}, localhost.localdomain, localhost
92+postfix postfix/not_configured error
93+postfix postfix/mailbox_limit string 0
94+postfix postfix/protocols select all
95+{% endblock %}
96+
97+{% block additional_repositories %}
98+d-i apt-setup/proposed boolean true
99+{% endblock %}
100
101=== added file 'templates.kernel/test_cases/generic-proposed/test'
102--- templates.kernel/test_cases/generic-proposed/test 1970-01-01 00:00:00 +0000
103+++ templates.kernel/test_cases/generic-proposed/test 2011-07-19 22:39:30 +0000
104@@ -0,0 +1,29 @@
105+#!/usr/bin/python
106+
107+import logging
108+import unittest
109+import subprocess
110+import os
111+
112+logging.basicConfig(level=logging.DEBUG)
113+
114+class ltpTest(unittest.TestCase):
115+
116+ def testLTPlite(self):
117+ # hack: at least for ltp-lite:
118+ os.makedirs ('/usr/lib/ltp/results/')
119+ os.makedirs ('/usr/lib/ltp/tools/pan')
120+ os.symlink ('/usr/lib/ltp/tools/ltp-pan', '/usr/lib/ltp/tools/pan/ltp-pan')
121+ # end hack
122+ logging.debug ('running /usr/lib/ltp/tools/runltp -f ltplite')
123+ Test = subprocess.Popen (['/usr/lib/ltp/tools/runltp',
124+ '-f ltplite'],
125+ stdout=subprocess.PIPE,
126+ stderr=subprocess.PIPE)
127+ (stdout, stderr) = Test.communicate ()
128+ logging.info ('%s' % stdout)
129+ logging.info ('%s' % stderr)
130+ self.assertEqual(Test.returncode, 0)
131+
132+if __name__ == '__main__':
133+ unittest.main()
134
135=== added directory 'templates.kernel/test_cases/server-proposed'
136=== added file 'templates.kernel/test_cases/server-proposed/preseed'
137--- templates.kernel/test_cases/server-proposed/preseed 1970-01-01 00:00:00 +0000
138+++ templates.kernel/test_cases/server-proposed/preseed 2011-07-19 22:39:30 +0000
139@@ -0,0 +1,56 @@
140+#
141+# Copyright (C) 2010, Canonical Ltd (http://www.canonical.com/)
142+#
143+# This file is part of ubuntu-server-iso-testing.
144+#
145+# ubuntu-server-iso-testing is free software: you can redistribute it
146+# and/or modify it under the terms of the GNU General Public License
147+# as published by the Free Software Foundation, either version 3 of
148+# the License, or (at your option) any later version.
149+#
150+# ubuntu-server-iso-testing is distributed in the hope that it will
151+# be useful, but WITHOUT ANY WARRANTY; without even the implied warranty
152+# of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
153+# GNU General Public License for more details.
154+#
155+# You should have received a copy of the GNU General Public License
156+# along with ubuntu-server-iso-testing. If not, see
157+# <http://www.gnu.org/licenses/>.
158+#
159+
160+{% extends "base" %}
161+
162+{% block kernel_flavor %}
163+d-i base-installer/kernel/override-image string linux-generic
164+{% endblock %}
165+
166+{% block pkgsel_first %}
167+d-i pkgsel/include string openssh-server python-couchdb subunit python-subunit python-junitxml ltp build-essential
168+d-i pkgsel/update-policy select No automatic updates
169+{% endblock %}
170+
171+{% block d_i_answers %}
172+postfix postfix/mailname string {{ hostname }}
173+postfix postfix/tlsmgr_upgrade_warning boolean
174+postfix postfix/recipient_delim string +
175+postfix postfix/main_mailer_type select Internet Site
176+postfix postfix/retry_upgrade_warning boolean
177+# Install postfix despite an unsupported kernel?
178+postfix postfix/kernel_version_warning boolean
179+postfix postfix/relayhost string
180+postfix postfix/procmail boolean false
181+postfix postfix/bad_recipient_delimiter error
182+postfix postfix/chattr boolean false
183+postfix postfix/root_address string
184+postfix postfix/rfc1035_violation boolean false
185+postfix postfix/mydomain_warning boolean
186+postfix postfix/mynetworks string 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
187+postfix postfix/destinations string {{ hostname }}, localhost.localdomain, localhost
188+postfix postfix/not_configured error
189+postfix postfix/mailbox_limit string 0
190+postfix postfix/protocols select all
191+{% endblock %}
192+
193+{% block additional_repositories %}
194+d-i apt-setup/proposed boolean true
195+{% endblock %}
196
197=== added file 'templates.kernel/test_cases/server-proposed/test'
198--- templates.kernel/test_cases/server-proposed/test 1970-01-01 00:00:00 +0000
199+++ templates.kernel/test_cases/server-proposed/test 2011-07-19 22:39:30 +0000
200@@ -0,0 +1,29 @@
201+#!/usr/bin/python
202+
203+import logging
204+import unittest
205+import subprocess
206+import os
207+
208+logging.basicConfig(level=logging.DEBUG)
209+
210+class ltpTest(unittest.TestCase):
211+
212+ def testLTPlite(self):
213+ # hack: at least for ltp-lite:
214+ os.makedirs ('/usr/lib/ltp/results/')
215+ os.makedirs ('/usr/lib/ltp/tools/pan')
216+ os.symlink ('/usr/lib/ltp/tools/ltp-pan', '/usr/lib/ltp/tools/pan/ltp-pan')
217+ # end hack
218+ logging.debug ('running /usr/lib/ltp/tools/runltp -f ltplite')
219+ Test = subprocess.Popen (['/usr/lib/ltp/tools/runltp',
220+ '-f ltplite'],
221+ stdout=subprocess.PIPE,
222+ stderr=subprocess.PIPE)
223+ (stdout, stderr) = Test.communicate ()
224+ logging.info ('%s' % stdout)
225+ logging.info ('%s' % stderr)
226+ self.assertEqual(Test.returncode, 0)
227+
228+if __name__ == '__main__':
229+ unittest.main()
230
231=== added directory 'templates.kernel/test_cases/virtual-proposed'
232=== added file 'templates.kernel/test_cases/virtual-proposed/preseed'
233--- templates.kernel/test_cases/virtual-proposed/preseed 1970-01-01 00:00:00 +0000
234+++ templates.kernel/test_cases/virtual-proposed/preseed 2011-07-19 22:39:30 +0000
235@@ -0,0 +1,56 @@
236+#
237+# Copyright (C) 2010, Canonical Ltd (http://www.canonical.com/)
238+#
239+# This file is part of ubuntu-server-iso-testing.
240+#
241+# ubuntu-server-iso-testing is free software: you can redistribute it
242+# and/or modify it under the terms of the GNU General Public License
243+# as published by the Free Software Foundation, either version 3 of
244+# the License, or (at your option) any later version.
245+#
246+# ubuntu-server-iso-testing is distributed in the hope that it will
247+# be useful, but WITHOUT ANY WARRANTY; without even the implied warranty
248+# of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
249+# GNU General Public License for more details.
250+#
251+# You should have received a copy of the GNU General Public License
252+# along with ubuntu-server-iso-testing. If not, see
253+# <http://www.gnu.org/licenses/>.
254+#
255+
256+{% extends "base" %}
257+
258+{% block kernel_flavor %}
259+d-i base-installer/kernel/override-image string linux-generic
260+{% endblock %}
261+
262+{% block pkgsel_first %}
263+d-i pkgsel/include string openssh-server python-couchdb subunit python-subunit python-junitxml ltp build-essential
264+d-i pkgsel/update-policy select No automatic updates
265+{% endblock %}
266+
267+{% block d_i_answers %}
268+postfix postfix/mailname string {{ hostname }}
269+postfix postfix/tlsmgr_upgrade_warning boolean
270+postfix postfix/recipient_delim string +
271+postfix postfix/main_mailer_type select Internet Site
272+postfix postfix/retry_upgrade_warning boolean
273+# Install postfix despite an unsupported kernel?
274+postfix postfix/kernel_version_warning boolean
275+postfix postfix/relayhost string
276+postfix postfix/procmail boolean false
277+postfix postfix/bad_recipient_delimiter error
278+postfix postfix/chattr boolean false
279+postfix postfix/root_address string
280+postfix postfix/rfc1035_violation boolean false
281+postfix postfix/mydomain_warning boolean
282+postfix postfix/mynetworks string 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
283+postfix postfix/destinations string {{ hostname }}, localhost.localdomain, localhost
284+postfix postfix/not_configured error
285+postfix postfix/mailbox_limit string 0
286+postfix postfix/protocols select all
287+{% endblock %}
288+
289+{% block additional_repositories %}
290+d-i apt-setup/proposed boolean true
291+{% endblock %}
292
293=== added file 'templates.kernel/test_cases/virtual-proposed/test'
294--- templates.kernel/test_cases/virtual-proposed/test 1970-01-01 00:00:00 +0000
295+++ templates.kernel/test_cases/virtual-proposed/test 2011-07-19 22:39:30 +0000
296@@ -0,0 +1,29 @@
297+#!/usr/bin/python
298+
299+import logging
300+import unittest
301+import subprocess
302+import os
303+
304+logging.basicConfig(level=logging.DEBUG)
305+
306+class ltpTest(unittest.TestCase):
307+
308+ def testLTPlite(self):
309+ # hack: at least for ltp-lite:
310+ os.makedirs ('/usr/lib/ltp/results/')
311+ os.makedirs ('/usr/lib/ltp/tools/pan')
312+ os.symlink ('/usr/lib/ltp/tools/ltp-pan', '/usr/lib/ltp/tools/pan/ltp-pan')
313+ # end hack
314+ logging.debug ('running /usr/lib/ltp/tools/runltp -f ltplite')
315+ Test = subprocess.Popen (['/usr/lib/ltp/tools/runltp',
316+ '-f ltplite'],
317+ stdout=subprocess.PIPE,
318+ stderr=subprocess.PIPE)
319+ (stdout, stderr) = Test.communicate ()
320+ logging.info ('%s' % stdout)
321+ logging.info ('%s' % stderr)
322+ self.assertEqual(Test.returncode, 0)
323+
324+if __name__ == '__main__':
325+ unittest.main()

Subscribers

People subscribed via source and target branches