File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -323,18 +323,18 @@ def verifyPDFs(manifestList):
323
323
if os .access (f , os .R_OK ):
324
324
fileMd5 = hashlib .md5 (open (f , 'rb' ).read ()).hexdigest ()
325
325
if 'md5' not in item :
326
- print 'ERROR : Missing md5 for file "' + f + '".' ,
326
+ print 'WARNING : Missing md5 for file "' + f + '".' ,
327
327
print 'Hash for current file is "' + fileMd5 + '"'
328
328
error = True
329
329
continue
330
330
md5 = item ['md5' ]
331
331
if fileMd5 != md5 :
332
- print 'ERROR : MD5 of file "' + f + '" does not match file.' ,
332
+ print 'WARNING : MD5 of file "' + f + '" does not match file.' ,
333
333
print 'Expected "' + md5 + '" computed "' + fileMd5 + '"'
334
334
error = True
335
335
continue
336
336
else :
337
- print 'ERROR : Unable to open file for reading "' + f + '".'
337
+ print 'WARNING : Unable to open file for reading "' + f + '".'
338
338
error = True
339
339
return not error
340
340
@@ -363,7 +363,10 @@ def setUp(options):
363
363
manifestList = json .load (mf )
364
364
365
365
downloadLinkedPDFs (manifestList )
366
- verifyPDFs (manifestList )
366
+
367
+ if not verifyPDFs (manifestList ):
368
+ print 'Unable to verify the checksum for the files that are used for testing.'
369
+ print 'Please re-download the files, or adjust the MD5 checksum in the manifest for the files listed above.\n '
367
370
368
371
for b in testBrowsers :
369
372
State .taskResults [b .name ] = { }
You can’t perform that action at this time.
0 commit comments