Merge lp:~nuclearbob/utah/remove-report-check into lp:utah

Proposed by Max Brustkern
Status: Merged
Approved by: Javier Collado
Approved revision: 760
Merged at revision: 760
Proposed branch: lp:~nuclearbob/utah/remove-report-check
Merge into: lp:utah
Diff against target: 27 lines (+0/-17)
1 file modified
utah/isotest/iso_static_validation.py (+0/-17)
To merge this branch: bzr merge lp:~nuclearbob/utah/remove-report-check
Reviewer Review Type Date Requested Status
Javier Collado (community) Approve
Max Brustkern (community) Needs Resubmitting
Review via email: mp+136416@code.launchpad.net

Description of the change

Per an IRC conversation, I've commented out the test for report.html in the iso static validation, since it has outlived its usefulness.

To post a comment you must log in.
Revision history for this message
Javier Collado (javier.collado) wrote :

I don't like much to have commented code when there's version control.

If there's no longer a reason to have the test, then it can be removed. If it
will useful when some other thing is fixed, then it can be decorated with
unittest.skip and a message about what's the reason why the test case is being
temporarily skipped.

760. By Max Brustkern

Removed test since history will be in version control

Revision history for this message
Max Brustkern (nuclearbob) wrote :

You make a good point. If we ever do want that code again for some reason, it's in the history.

review: Needs Resubmitting
Revision history for this message
Javier Collado (javier.collado) wrote :

Looks nice now. Thanks.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'utah/isotest/iso_static_validation.py'
2--- utah/isotest/iso_static_validation.py 2012-11-16 19:27:27 +0000
3+++ utah/isotest/iso_static_validation.py 2012-11-27 18:13:23 +0000
4@@ -380,23 +380,6 @@
5 self.assertEqual(stderr, '')
6 self.assertIn("created 1 directories", stdout)
7
8- # Test if the report.html exists for the d-i based images
9- # and that it does not have any conflicting packages
10- @unittest.skipIf(ubiquity_image, "Skipping for ubiquity based images")
11- def test_report_html(self):
12- report_url = os.path.join(self.url, 'current', 'report.html')
13- try:
14- fh_report_page = urllib2.urlopen(report_url).read()
15- except urllib2.HTTPError, e:
16- logging.error("Failed to fetch URL '%s': %s .", report_url, e)
17- self.fail("Failed to fetch report.html from the server")
18-
19- # check the number of failed packages
20- report_page_lines = re.findall('there were ["]?([^" >]+)',
21- fh_report_page)
22- logging.debug('Check for conflicting packages in the report file')
23- self.assertEqual(['0'], report_page_lines)
24-
25 # clean up
26 @classmethod
27 def tearDownClass(cls):

Subscribers

People subscribed via source and target branches