source: sasview/test/run_one.py @ a110e37f

ESS_GUIESS_GUI_DocsESS_GUI_batch_fittingESS_GUI_bumps_abstractionESS_GUI_iss1116ESS_GUI_iss879ESS_GUI_iss959ESS_GUI_openclESS_GUI_orderingESS_GUI_sync_sascalccostrafo411magnetic_scattrelease-4.1.1release-4.1.2release-4.2.2release_4.0.1ticket-1009ticket-1094-headlessticket-1242-2d-resolutionticket-1243ticket-1249ticket885unittest-saveload
Last change on this file since a110e37f was 95fb3e8, checked in by pkienzle, 11 years ago

make svn status ignore test output

  • Property mode set to 100644
File size: 642 bytes
Line 
1#!/usr/bin/env python
2import os
3import sys
4import xmlrunner
5import unittest
6import imp
7from os.path import abspath, dirname, split as splitpath, join as joinpath
8
9run_py = joinpath(dirname(dirname(abspath(__file__))), 'run.py')
10#print run_py
11run = imp.load_source('sasview_run', run_py)
12run.prepare()
13#print "\n".join(sys.path)
14test_path,test_file = splitpath(sys.argv[1])
15print "test file",sys.argv[1]
16#print test_path, test_file
17sys.argv = [sys.argv[0]]
18os.chdir(test_path)
19sys.path.insert(0, test_path)
20test = imp.load_source('tests',test_file)
21unittest.main(test, testRunner=xmlrunner.XMLTestRunner(output='logs'))
22
Note: See TracBrowser for help on using the repository browser.