- Timestamp:
- Sep 22, 2017 11:49:08 PM (7 years ago)
- 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, magnetic_scatt, release-4.2.2, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
- Children:
- 1d014cb
- Parents:
- d04ac05
- Location:
- test
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
test/run_one.py
- Property mode changed from 100644 to 100755
-
test/utest_sasview.py
- Property mode changed from 100644 to 100755
r574adc7 r9e308a3 25 25 import matplotlib 26 26 import wx 27 except :27 except ImportError: 28 28 HAS_MPL_WX = False 29 29 … … 36 36 # COMMAND_SEP = '&' 37 37 38 def run_tests(dirs=None, all=False):38 def run_tests(dirs=None, run_all=False): 39 39 test_root = os.path.abspath(os.path.dirname(__file__)) 40 40 run_one_py = os.path.join(test_root, 'run_one.py') … … 82 82 if has_failed or not has_tests: 83 83 failed += 1 84 print("Result for %s (%s): FAILED" % (module_name, module_dir)) 84 modpath = os.path.join(module_dir, module_name+".py") 85 print("Result for %s: FAILED %s" 86 % (module_name, os.path.relpath(modpath, os.getcwd()))) 85 87 #print(std_out) 86 88 else: … … 106 108 107 109 if __name__ == '__main__': 108 all = (len(sys.argv) > 1 and sys.argv[1] == '-all')109 dirs = sys.argv[1:] if not all else sys.argv[2:]110 if run_tests(dirs=dirs, all=all)>0:110 run_all = (len(sys.argv) > 1 and sys.argv[1] == '-all') 111 dirs = sys.argv[1:] if not run_all else sys.argv[2:] 112 if run_tests(dirs=dirs, run_all=run_all)>0: 111 113 sys.exit(1)
Note: See TracChangeset
for help on using the changeset viewer.