Ignore:
Timestamp:
Jun 18, 2008 9:04:14 PM (14 years ago)
Author:
nanang
Message:

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

File:
1 edited

Legend:

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

    r2028 r2029  
    179179if script.test.test_func != None: 
    180180        try: 
    181                 script.test.test_func(script.test) 
     181                script.test.test_func(script.test, script.test.user_data) 
    182182        except TestError, e: 
    183183                handle_error(e.desc, script.test) 
     
    197197        p.wait() 
    198198 
     199# Run the post test function 
     200if script.test.post_func != None: 
     201        try: 
     202                script.test.post_func(script.test, script.test.user_data) 
     203        except TestError, e: 
     204                handle_error(e.desc, script.test) 
     205 
    199206# Done 
    200207print "Test " + script.test.title + " completed successfully" 
Note: See TracChangeset for help on using the changeset viewer.