summaryrefslogtreecommitdiff
path: root/pjsip-apps/src/test-pjsua/run.py
diff options
context:
space:
mode:
authorNanang Izzuddin <nanang@teluu.com>2008-06-18 21:04:14 +0000
committerNanang Izzuddin <nanang@teluu.com>2008-06-18 21:04:14 +0000
commite32bfce1a27050601bf74f6f34d6c78b5ac75b6d (patch)
tree845d61c0d13f8cd2273202636832123d6cfc834f /pjsip-apps/src/test-pjsua/run.py
parent67de577315598ed2b274592283110a67a4219a70 (diff)
Added new callback for module: post_func (called at the end of the test), added userdata param for modules, and added new module media_playrec with some scripts
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@2029 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjsip-apps/src/test-pjsua/run.py')
-rw-r--r--pjsip-apps/src/test-pjsua/run.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/pjsip-apps/src/test-pjsua/run.py b/pjsip-apps/src/test-pjsua/run.py
index 0b374def..34792dad 100644
--- a/pjsip-apps/src/test-pjsua/run.py
+++ b/pjsip-apps/src/test-pjsua/run.py
@@ -178,7 +178,7 @@ for inst_param in script.test.inst_params:
# Run the test function
if script.test.test_func != None:
try:
- script.test.test_func(script.test)
+ script.test.test_func(script.test, script.test.user_data)
except TestError, e:
handle_error(e.desc, script.test)
@@ -196,6 +196,13 @@ for p in script.test.process:
p.expect(const.DESTROYED, False)
p.wait()
+# Run the post test function
+if script.test.post_func != None:
+ try:
+ script.test.post_func(script.test, script.test.user_data)
+ except TestError, e:
+ handle_error(e.desc, script.test)
+
# Done
print "Test " + script.test.title + " completed successfully"
sys.exit(0)