forked from mirrors/linphone-iphone
Allow running Python unit tests from an installed package.
This commit is contained in:
parent
a3e84af3fb
commit
0f644703bf
1 changed files with 6 additions and 1 deletions
|
|
@ -10,7 +10,12 @@ import time
|
|||
test_username = "liblinphone_tester"
|
||||
test_password = "secret"
|
||||
test_route = "sip2.linphone.org"
|
||||
tester_resources_path = os.path.abspath(os.path.join(os.path.dirname(__file__), "../../../tester/"))
|
||||
if os.path.isdir(os.path.join(os.path.dirname(__file__), "rcfiles")):
|
||||
# Running unit tests from an installed package
|
||||
tester_resources_path = os.path.abspath(os.path.dirname(__file__))
|
||||
else:
|
||||
# Running unit tests from the linphone sources
|
||||
tester_resources_path = os.path.abspath(os.path.join(os.path.dirname(__file__), "../../../tester/"))
|
||||
|
||||
|
||||
def create_address(domain):
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue