Ignore:
Timestamp:
Jun 27, 2008 9:12:12 PM (16 years ago)
Author:
nanang
Message:

Ticket #543:

  • added options to run.py
  • passing options in runall.py to run.py
  • removing userdata in module callback functions
File:
1 edited

Legend:

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

    r2052 r2078  
    1515import subprocess 
    1616import inc_const as const 
     17from inc_cfg import * 
    1718 
    1819# Load configuration 
    19 cfg_file = imp.load_source("cfg_file", sys.argv[2]) 
     20cfg_file = imp.load_source("cfg_file", ARGS[1]) 
    2021 
    2122# WAV similarity calculator 
     
    2526COMPARE_THRESHOLD = 2 
    2627 
    27 # UserData 
    28 class mod_media_playrec_user_data: 
    29         input_filename = "" 
    30         output_filename = "" 
     28# COMPARE params 
     29input_filename  = ""                    # Input filename 
     30output_filename = ""                    # Output filename 
    3131 
    3232# Test body function 
    3333def test_func(t, ud): 
     34        global input_filename 
     35        global output_filename 
     36 
    3437        endpt = t.process[0] 
    3538         
     
    6871# Post body function 
    6972def post_func(t, ud): 
     73        global input_filename 
     74        global output_filename 
     75 
    7076        endpt = t.process[0] 
    7177 
     
    94100test.test_func = test_func 
    95101test.post_func = post_func 
    96 test.user_data = mod_media_playrec_user_data() 
Note: See TracChangeset for help on using the changeset viewer.