Changeset aaad4c95 in sasview


Ignore:
Timestamp:
Apr 5, 2017 10:55:17 AM (8 years ago)
Author:
Ricardo Ferraz Leal <ricleal@…>
Branches:
master, ESS_GUI, ESS_GUI_Docs, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_iss959, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc, costrafo411, magnetic_scatt, release-4.2.2, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
Children:
8f8100a
Parents:
3608cd1
Message:

Log for tests is now on the test directory

Files:
5 edited

Legend:

Unmodified
Added
Removed
  • .gitignore

    rc155a16 raaad4c95  
    5858/test/sasdataloader/test/isis_1_1_write_test.xml 
    5959/test/sasdataloader/test/write_test.xml 
     60test*log 
    6061 
    6162# autogenerated scripts 
  • test/logging.ini

    rebb0a55 raaad4c95  
    2929level=INFO 
    3030formatter=detailed 
    31 args=(os.path.join(os.path.expanduser("~"),'.sasview/tests.log'),"w") 
     31args=('tests.log','w') 
    3232 
    3333############################################################################### 
  • test/run_one.py

    r64ca561 raaad4c95  
    1515    logging.config.fileConfig(LOGGER_CONFIG_FILE, disable_existing_loggers=False) 
    1616 
     17if len(sys.argv) < 2: 
     18    logger.error("Use %s <filename to test>",sys.argv[0]) 
     19    sys.exit(-1) 
    1720 
    1821run_py = joinpath(dirname(dirname(abspath(__file__))), 'run.py') 
  • test/sasdataloader/test/testLoad.py

    r463e7ffc raaad4c95  
    1919    HAS_IMAGE = True 
    2020except: 
    21     print "IMAGE TESTS WILL NOT BE PERFORMED: MISSING PIL MODULE" 
     21    logger.info("IMAGE TESTS WILL NOT BE PERFORMED: MISSING PIL MODULE") 
    2222     
    2323import os.path 
  • test/utest_sasview.py

    rebb0a55 raaad4c95  
    88import logging.config 
    99LOGGER_CONFIG_FILE = os.path.join(os.path.abspath(os.path.dirname(__file__)), 'logging.ini') 
    10 print LOGGER_CONFIG_FILE 
    1110logging.config.fileConfig(LOGGER_CONFIG_FILE) 
    1211logger = logging.getLogger(__name__) 
     
    5049            continue 
    5150         
     51 
    5252        # Go through modules looking for unit tests 
    5353        module_dir = os.path.join(test_root, d, "test") 
Note: See TracChangeset for help on using the changeset viewer.