Changeset 2036 for pjproject/trunk/pjsip-apps/src/test-pjsua/run.py
- Timestamp:
- Jun 20, 2008 5:43:55 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip-apps/src/test-pjsua/run.py
r2033 r2036 110 110 ######################### 111 111 # Error handling 112 def handle_error(errmsg, t ):112 def handle_error(errmsg, t, close_processes = True): 113 113 print "====== Caught error: " + errmsg + " ======" 114 time.sleep(1) 115 for p in t.process: 116 p.send("q") 117 p.send("q") 118 p.expect(const.DESTROYED, False) 119 p.wait() 114 if (close_processes): 115 time.sleep(1) 116 for p in t.process: 117 p.send("q") 118 p.send("q") 119 p.expect(const.DESTROYED, False) 120 p.wait() 120 121 print "Test completed with error: " + errmsg 121 122 sys.exit(1) … … 196 197 script.test.post_func(script.test, script.test.user_data) 197 198 except TestError, e: 198 handle_error(e.desc, script.test )199 handle_error(e.desc, script.test, False) 199 200 200 201 # Done
Note: See TracChangeset
for help on using the changeset viewer.