[Asterisk-code-review] Prepend system PATH with location of bundled pjsua executable. (testsuite[master])
Anonymous Coward
asteriskteam at digium.com
Sun Oct 9 18:20:16 CDT 2016
Anonymous Coward #1000019 has submitted this change and it was merged.
Change subject: Prepend system PATH with location of bundled pjsua executable.
......................................................................
Prepend system PATH with location of bundled pjsua executable.
This makes it possible for the testsuite to use the pjsua executable
installed by bundled pjproject.
Change-Id: I12e6bb16c7bfdccc42c1a51cf15866d13a287941
---
M runtests.py
1 file changed, 5 insertions(+), 0 deletions(-)
Approvals:
George Joseph: Looks good to me, but someone else must approve
Anonymous Coward #1000019: Verified
Joshua Colp: Looks good to me, approved
diff --git a/runtests.py b/runtests.py
index 7d324cf..c6f5b3a 100755
--- a/runtests.py
+++ b/runtests.py
@@ -75,6 +75,11 @@
sys.path.append(pjproject_lib)
# And of course, the tests need it.
new_PYTHONPATH.append(pjproject_lib)
+ new_SYSPATH = []
+ if os.getenv("PATH"):
+ new_SYSPATH.append(os.getenv("PATH"))
+ new_SYSPATH.append(pjproject_lib)
+ os.environ['PATH'] = os.pathsep.join(new_SYSPATH)
# If True, abandon the current running TestRun. Used by SIGTERM.
abandon_test = False
--
To view, visit https://gerrit.asterisk.org/4007
To unsubscribe, visit https://gerrit.asterisk.org/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I12e6bb16c7bfdccc42c1a51cf15866d13a287941
Gerrit-PatchSet: 2
Gerrit-Project: testsuite
Gerrit-Branch: master
Gerrit-Owner: Corey Farrell <git at cfware.com>
Gerrit-Reviewer: Anonymous Coward #1000019
Gerrit-Reviewer: George Joseph <gjoseph at digium.com>
Gerrit-Reviewer: Joshua Colp <jcolp at digium.com>
More information about the asterisk-code-review
mailing list