Changeset 2069 for pjproject/trunk/pjsip-apps/src/test-pjsua/run.py
- Timestamp:
- Jun 26, 2008 10:20:11 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip-apps/src/test-pjsua/run.py
r2067 r2069 55 55 ra = re.compile(const.ASSERT, re.I) 56 56 rr = re.compile(const.STDOUT_REFRESH) 57 t0 = time.time() 57 58 def __init__(self, inst_param): 58 59 self.inst_param = inst_param … … 99 100 def sync_stdout(self): 100 101 self.trace("sync_stdout") 101 self.send("echo 1") 102 self.expect("echo 1") 102 cmd = "echo 1" + str(random.randint(1000,9999)) 103 self.send(cmd) 104 self.expect(cmd) 103 105 104 106 def wait(self): … … 107 109 def trace(self, s): 108 110 if self.trace_enabled: 109 print self.name + ": " + "====== " + s + " ======" 111 now = time.time() 112 fmt = self.name + ": " + "================== " + s + " ==================" + " [at t=%(time)03d]" 113 print fmt % {'time':int(now - self.t0)} 110 114 111 115 #########################
Note: See TracChangeset
for help on using the changeset viewer.