Changeset 29228
- Timestamp:
- Sep 23, 2010, 3:46:01 PM (16 years ago)
- Location:
- branches/sc_branches/psps_testing
- Files:
-
- 1 added
- 2 edited
-
data/psut/ok/B00000010.tar.gz (added)
-
testers/batch_file.py (modified) (1 diff)
-
testers/fits/p2.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/sc_branches/psps_testing/testers/batch_file.py
r29227 r29228 25 25 of the files contained in the archive 26 26 27 >>> print BatchFileTester("data/psut/ok/B00000010.tar.gz").test() 28 PSDC-940-006-01, 3.4.1: OK 29 PSDC-940-006-01, 3.4: OK 30 PSDC-940-006-01, 3.5.1.2: OK 31 PSDC-940-006-01, 3.5.1.1: OK 32 PSDC-940-006-01, 3.5.1 (file attributes/name): OK 33 PSDC-940-006-01, 3.5.1 (file attributes/size): OK 34 PSDC-940-006-01, 3.5.1 (file attributes/MD5 checksum of file): OK 35 BARF 27 >>> print BatchFileTester("data/psut/ok/B00000010.tar.gz").test().success 28 True 36 29 """ 37 30 def __init__(self, filename): -
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.
