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
=== modified file 'utah/isotest/iso_static_validation.py'
--- utah/isotest/iso_static_validation.py 2012-11-16 19:27:27 +0000
+++ utah/isotest/iso_static_validation.py 2012-11-27 18:13:23 +0000
@@ -380,23 +380,6 @@
380 self.assertEqual(stderr, '')380 self.assertEqual(stderr, '')
381 self.assertIn("created 1 directories", stdout)381 self.assertIn("created 1 directories", stdout)
382382
383 # Test if the report.html exists for the d-i based images
384 # and that it does not have any conflicting packages
385 @unittest.skipIf(ubiquity_image, "Skipping for ubiquity based images")
386 def test_report_html(self):
387 report_url = os.path.join(self.url, 'current', 'report.html')
388 try:
389 fh_report_page = urllib2.urlopen(report_url).read()
390 except urllib2.HTTPError, e:
391 logging.error("Failed to fetch URL '%s': %s .", report_url, e)
392 self.fail("Failed to fetch report.html from the server")
393
394 # check the number of failed packages
395 report_page_lines = re.findall('there were ["]?([^" >]+)',
396 fh_report_page)
397 logging.debug('Check for conflicting packages in the report file')
398 self.assertEqual(['0'], report_page_lines)
399
400 # clean up383 # clean up
401 @classmethod384 @classmethod
402 def tearDownClass(cls):385 def tearDownClass(cls):

Subscribers

People subscribed via source and target branches