Commit 0f644703 authored by Ghislain MARY's avatar Ghislain MARY

Allow running Python unit tests from an installed package.

parent a3e84af3
......@@ -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):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment