Changeset 29228 for branches/sc_branches/psps_testing/testers/fits/p2.py
- Timestamp:
- Sep 23, 2010, 3:46:01 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/sc_branches/psps_testing/testers/fits/p2.py
r29227 r29228 66 66 nOTA = product.nOTA 67 67 if len(self.fits) != 4*nOTA + 2: 68 report.write('\nInvalid number of OTA: from FITS file: %d / from FrameMeta %d' 69 % (len(self.fits)-2/4, nOTA)) 70 return (report.getvalue(), None) 68 TestReport.ko('Invalid number of OTA: from FITS file: %d / from FrameMeta %d' 69 % (len(self.fits)-2/4, nOTA), 70 {'requirement': 'TBD'}) 71 return TestProduct() 71 72 for ota_index in range(nOTA): 72 73 PsPsLogger.debug(' Testing P2FitsTester object: OTA (%d/%d)' 73 74 % ((ota_index+1), nOTA)) 74 (messages, values) = self.test_detections_frames(frameID, ota_index, 75 be_tolerant_for_types) 76 PsPsLogger.debug(messages) 77 report.write('\n' + messages) 78 return (report.getvalue(), None) 75 subproduct = self.test_detections_frames(frameID, ota_index, 76 be_tolerant_for_types) 77 if subproduct.success: 78 TestReport.ok(requirement) 79 product.success = product.success and subproduct.success 80 return product 79 81 80 82 #####################################################
Note:
See TracChangeset
for help on using the changeset viewer.
