-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviewboard.asterisk.org/r/4134/
-----------------------------------------------------------

(Updated Oct. 31, 2014, 11 a.m.)


Review request for Asterisk Developers.


Changes
-------

Changed string concats to os.path.join.


Repository: testsuite


Description
-------

I've got some common code I want to share between a few tests so it's in the 
test's parent directory.  However, there doesn't seem to be a way to add the 
parent directory to the search path without specifying an absolute path.  So, I 
added a helper to TestModuleLoader that will allow you to add paths relative to 
the test directory.

Example:

test-modules:
    add-test-to-search-path: 'True'
    add-relative-to-search-path: ['..']
    test-object:
        config-section: object-config
        typename: 'ManagerConfigTest.ManagerConfigTest'

This adds <test_path>/.. to the search path. I.E. The test's parent directory.


Diffs (updated)
-----

  asterisk/trunk/lib/python/asterisk/test_runner.py 5831 

Diff: https://reviewboard.asterisk.org/r/4134/diff/


Testing
-------

Works for my tests and doesn't affect any others.


Thanks,

George Joseph

-- 
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-dev mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-dev

Reply via email to