Changeset 6906 for anuga_validation
- Timestamp:
- Apr 26, 2009, 5:35:16 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_validation/automated_validation_tests/patong_beach_validation/validate.py
r6903 r6906 58 58 OUTDIR_PREFIX = 'Make directory ' 59 59 60 # Name of SWW file produced by simulation60 # Name of SWW file produced by run_model.py 61 61 OUTPUT_SWW = 'patong.sww' 62 62 … … 93 93 94 94 if 'DOCTYPE' in data: 95 return False96 97 return True95 return True 96 97 return False 98 98 99 99 … … 114 114 (result, auth) = get_web_file(remote_url, local, auth=auth) 115 115 if result and is_html(local)==False: 116 log.debug('Success fetching file %s' % remote _url)116 log.debug('Success fetching file %s' % remote) 117 117 return (True, auth) 118 118 log.debug('Failure fetching from %s' % mirror) 119 120 log.debug('Failure fetching file %s' % remote) 119 121 return (False, auth) 120 122 … … 164 166 if not files_same(local_data_digest, remote_data_digest): 165 167 # digests differ, refresh object 166 log.info('Local file %s is out of date, refreshing ...' % obj)167 168 shutil.move(remote_digest, local_digest) 168 169 (res, auth) = get_remote_from_mirrors(obj, local_file, auth, mirrors)
Note: See TracChangeset
for help on using the changeset viewer.