Changeset 7087


Ignore:
Timestamp:
May 26, 2009, 2:39:23 PM (11 years ago)
Author:
rwilson
Message:

Changes to validation code, different logfile handling.

File:
1 edited

Legend:

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

    r7080 r7087  
    4747Optional_Data_Objects = ('patong.sww.TRIAL.tgz',
    4848                         'patong.sww.BASIC.tgz',
    49                          'patong.sww.FINAL.tgz'
     49                         #'patong.sww.FINAL.tgz'
    5050                        )
    5151
     
    6767
    6868def setup():
    69     '''Prepare for the validation run.
    70 
    71     Check we have required data set in project.py.
    72     '''
     69    '''Prepare for the validation run.'''
    7370   
    7471    pass
     
    376373log.console_logging_level = log.INFO
    377374log.log_logging_level = log.DEBUG
    378 log_filename = log.log_filename
    379375
    380376setup()
     
    431427for odo in Optional_Data_Objects:
    432428    start_time = time.time()
     429
    433430    (_, vtype, _) = odo.rsplit('.', 2)
    434431    vtype = vtype.lower()
     
    440437        (expected_sww, _) = valid_sww.rsplit('.', 1)
    441438        check_that_output_is_as_expected(expected_sww, valid_sww)
    442     shutil.move(log_filename, '%s.%s' % (log_filename, vtype))
     439
    443440    stop_time = time.time()
    444     log.critical("'%s' validation took %.1fs" % (vtype, stop_time - start_time))
     441    log.critical("'%s' validation took %.1fs\n\n\n" % (vtype, stop_time - start_time))
    445442
    446443# clean up
Note: See TracChangeset for help on using the changeset viewer.