diff options
author | Benny Prijono <bennylp@teluu.com> | 2010-03-27 02:35:06 +0000 |
---|---|---|
committer | Benny Prijono <bennylp@teluu.com> | 2010-03-27 02:35:06 +0000 |
commit | fc5e0485cc64213faadb735e8d76cea715192689 (patch) | |
tree | d3c14e9f58ee7021df36bf329c2e30bad86dfff5 /tests/pjsua/runall.py | |
parent | b50dc9e7af36f03479aa3a8a1f06608997063922 (diff) |
Ticket #1041 (Unit test):
- Initial Windows/MSVC work
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3122 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'tests/pjsua/runall.py')
-rw-r--r-- | tests/pjsua/runall.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/pjsua/runall.py b/tests/pjsua/runall.py index fad6c540..9c78075d 100644 --- a/tests/pjsua/runall.py +++ b/tests/pjsua/runall.py @@ -5,6 +5,7 @@ import time import re import shutil +PYTHON = os.path.basename(sys.executable) # Usage: # runall.py [test-to-resume] @@ -102,7 +103,10 @@ while len(sys.argv): (mod,param) = t.split(None,2) tname = mod[4:mod.find(".py")] + "_" + \ param[param.find("/")+1:param.find(".py")] - tcmd = 'python run.py ' + t + c = "" + if len(sys.argv): + c = " ".join(sys.argv) + " " + tcmd = PYTHON + ' run.py ' + c + t print '\t\t<Test name="%s" cmd="%s" wdir="tests/pjsua" />' % (tname, tcmd) sys.exit(0) elif sys.argv[0] == '-s' or sys.argv[0] == '--shell': |