Changeset 7107


Ignore:
Timestamp:
May 28, 2009, 7:57:05 AM (11 years ago)
Author:
rwilson
Message:

Made proxy authentication less likely to lock out user on errors.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/numpy_anuga_validation/automated_validation_tests/patong_beach_validation/validate.py

    r7087 r7107  
    3232           'http://dfn.dl.sourceforge.net/sourceforge/anuga/'             # de
    3333          ]
     34
    3435### for testing
    3536##MIRRORS = ['http://10.7.64.243/patong_validation_data/']       # local linux box
     
    4546# these names must be of the form <scene>.sww.<type>.tgz
    4647# as code below depends upon it.
    47 Optional_Data_Objects = ('patong.sww.TRIAL.tgz',
     48Optional_Data_Objects = (
     49                         'patong.sww.TRIAL.tgz',
    4850                         'patong.sww.BASIC.tgz',
    49                          #'patong.sww.FINAL.tgz'
     51                         'patong.sww.FINAL.tgz'
    5052                        )
    5153
     
    118120                return (True, auth)
    119121            log.debug('Failure fetching from %s' % mirror)
     122            auth = None
    120123
    121124        log.debug('Failure fetching file %s' % remote)
     
    195198            log.info('Refresh of file %s failed.' % data_object)
    196199            result = False
     200            # don't use possibly bad 'auth' again,
     201            # some proxies lock out on repeated failures.
     202            auth = None
    197203
    198204    if result:
     
    377383
    378384# prepare user for what is about to happen
    379 
    380 msg = '''
     385log.critical('''
    381386Please note that this validation test is accurate only on 64bit Linux or
    382387Windows.  Running the validation on a 32bit operating system will result in
     
    396401if you wish.  If not supplied in environment variables you will be prompted for
    397402the information.
    398 '''
    399 
    400 log.critical(msg)
     403''')
     404
    401405
    402406# make sure local data is up to date
     
    442446
    443447# clean up
     448log.critical('Tearing down ...')
    444449teardown()
Note: See TracChangeset for help on using the changeset viewer.