- Timestamp:
- Jun 26, 2012 7:37:48 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/tests/pjsua/mod_sipp.py
r4177 r4179 10 10 import inc_const 11 11 12 # flags that test is running in Unix 13 G_INUNIX = False 14 if sys.platform.lower().find("win32")!=-1 or sys.platform.lower().find("microsoft")!=-1: 15 G_INUNIX = False 16 else: 17 G_INUNIX = True 18 12 19 # SIPp executable path and param 13 20 #SIPP_PATH = '"C:\\Program Files (x86)\\Sipp_3.2\\sipp.exe"' … … 17 24 # On BG mode, SIPp doesn't require special terminal 18 25 # On non-BG mode, on win, it needs env var: "TERMINFO=c:\cygwin\usr\share\terminfo" 19 SIPP_BG_MODE = True 26 # TODO: on unix with BG mode, waitpid() always fails, need to be fixed 27 #SIPP_BG_MODE = True 28 SIPP_BG_MODE = not G_INUNIX 20 29 21 30 # Will be updated based on configuration file (a .py file whose the same name as SIPp XML file) … … 34 43 else: 35 44 exit(-99) 45 36 46 37 47 # Init PJSUA test instance … … 68 78 print "Running SIPP: " + fullcmd 69 79 if SIPP_BG_MODE: 70 sipp_proc = subprocess.Popen(fullcmd, bufsize=0, stdin=subprocess.PIPE, stdout=subprocess.PIPE, universal_newlines=False)71 else: 72 sipp_proc = subprocess.Popen(fullcmd )80 sipp_proc = subprocess.Popen(fullcmd, bufsize=0, stdin=subprocess.PIPE, stdout=subprocess.PIPE, shell=G_INUNIX, universal_newlines=False) 81 else: 82 sipp_proc = subprocess.Popen(fullcmd, shell=G_INUNIX) 73 83 74 84 if not SIPP_BG_MODE:
Note: See TracChangeset
for help on using the changeset viewer.