Ignore:
Timestamp:
Jun 27, 2008 11:53:00 PM (16 years ago)
Author:
bennylp
Message:

Added stdout buffering option in Python tests

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip-apps/src/test-pjsua/run.py

    r2078 r2084  
    109109                self.echo = inst_param.echo_enabled 
    110110                self.trace_enabled = inst_param.trace_enabled 
    111                 fullcmd = G_EXE + " " + inst_param.arg + " --stdout-no-buf --stdout-refresh=5 --stdout-refresh-text=" + const.STDOUT_REFRESH 
     111                fullcmd = G_EXE + " " + inst_param.arg + " --stdout-refresh=5 --stdout-refresh-text=" + const.STDOUT_REFRESH 
     112                if not inst_param.enable_buffer: 
     113                        fullcmd = fullcmd + " --stdout-no-buf" 
    112114                self.trace("Popen " + fullcmd) 
    113115                self.proc = subprocess.Popen(fullcmd, shell=G_INUNIX, bufsize=0, stdin=subprocess.PIPE, stdout=subprocess.PIPE, universal_newlines=False) 
Note: See TracChangeset for help on using the changeset viewer.