diff options
Diffstat (limited to 'pjsip-apps/src/test-pjsua/run.py')
-rw-r--r-- | pjsip-apps/src/test-pjsua/run.py | 9 |
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) |