Changeset 6232a6f in sasview for test


Ignore:
Timestamp:
Nov 23, 2011 10:24:41 AM (13 years ago)
Author:
Mathieu Doucet <doucetm@…>
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.1.1, release-4.1.2, release-4.2.2, release_4.0.1, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
Children:
ea59943
Parents:
ea6e8b6
Message:

Re #5 improving tests

File:
1 edited

Legend:

Unmodified
Added
Removed
  • test/utest_sansview.py

    rea6e8b6 r6232a6f  
    2828                    code = "cd %s;python -c \"import sys;import xmlrunner;import unittest;sys.path.insert(0, '%s');" % (module_dir, module_dir) 
    2929                    code += "from %s import *;" % module_name 
    30                     code += "unittest.main(testRunner=xmlrunner.XMLTestRunner(output='Logs')\"" 
     30                    code += "unittest.main(testRunner=xmlrunner.XMLTestRunner(output='logs'))\"" 
    3131                    proc = subprocess.Popen(code, shell=True, stdout=subprocess.PIPE, stderr = subprocess.STDOUT) 
    3232                    std_out, std_err = proc.communicate() 
    33                      
    34                     has_failed = False 
     33                    has_failed = True 
    3534                    m = re.search("Ran ([0-9]+) tests", std_out) 
    3635                    if m is not None: 
     36                        has_failed = False 
    3737                        n_tests += int(m.group(1)) 
    3838 
     
    5555                        print "Result for %s: SUCCESS" % module_name 
    5656                         
    57      
    5857    print "\n----------------------------------------------" 
    5958    print "Results by test modules:" 
Note: See TracChangeset for help on using the changeset viewer.