Changeset 6787 for anuga_validation


Ignore:
Timestamp:
Apr 14, 2009, 12:15:32 PM (16 years ago)
Author:
rwilson
Message:

Minor changes to logging.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • anuga_validation/automated_validation_tests/patong_validation/validate_patong.py

    r6785 r6787  
    8787                                local_digest, auth=auth)
    8888            if auth == False:
    89                 print 'point 1'
    9089                return False
    9190            log.info('Fetching remote file %s' % object_url)
    9291            auth = get_web_file(object_url+cache_defeat, local_file, auth=auth)
    9392            if auth == False:
    94                 print 'point 2'
    9593                return False
    9694        else:
     
    10098                                remote_digest, auth=auth)
    10199            if auth == False:
    102                 print 'point 3'
    103100                return False
    104101           
     
    154151    Return True if we *can* run, else False.
    155152    '''
     153
     154    log.critical('Checking if you have the required files ...')
    156155
    157156    for obj in Local_Data_Objects:
     
    183182
    184183    # run the simulation, produce SWW file
    185     log.debug('Running Patong simulation ...')
     184    log.critical('Running Patong simulation ...')
    186185    cmd = 'python run_model.py > %s' % RUNMODEL_STDOUT
    187186    res = os.system(cmd)
     
    192191
    193192    # get path to expected SWW file
    194     log.debug('Checking that simulation results are as expected ...')
     193    log.critical('Checking that simulation results are as expected ...')
    195194    local_sww = os.path.join(Local_Data_Directory, Local_Data_Objects[0])
    196195
     
    275274# make sure local data is up to date
    276275if not update_local_data():
    277     print 'update_local_data() returned False'
    278276    if not can_we_run():
    279         print 'can_we_run() returned False'
    280277        log.critical('')
    281278        log.critical('*'*80)
Note: See TracChangeset for help on using the changeset viewer.