Deepak C Shetty has uploaded a new change for review.
Change subject: tests: Honour PYTHONPATH if set on the host
......................................................................
tests: Honour PYTHONPATH if set on the host
run_tests_local.sh doesn't honour PYTHONPATH if it was set.
This causes issues with the tests (sometimes) if user was using
a custom path for say libvirt ( running from a git src, rather
than installed rpm path). This path add $PYTHONPATH to the
script to fix the issue.
Change-Id: Ia4a3ac4d238da59abf558b628fa34cae90006b6e
Signed-off-by: Deepak C Shetty <deepakcs(a)linux.vnet.ibm.com>
---
M tests/run_tests_local.sh.in
1 file changed, 1 insertion(+), 1 deletion(-)
git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/48/7648/1
diff --git a/tests/run_tests_local.sh.in b/tests/run_tests_local.sh.in
index c4bc5c8..bb43538 100644
--- a/tests/run_tests_local.sh.in
+++ b/tests/run_tests_local.sh.in
@@ -1,2 +1,2 @@
#!/bin/sh
-PYTHONDONTWRITEBYTECODE=1 LC_ALL=C
PYTHONPATH="@builddir@/vdsm:@top_srcdir@/vdsm:@top_srcdir@/vdsm_cli" @PYTHON@
@top_srcdir(a)/tests/testrunner.py --local-modules $@
+PYTHONDONTWRITEBYTECODE=1 LC_ALL=C
PYTHONPATH="$PYTHONPATH:@builddir@/vdsm:@top_srcdir@/vdsm:@top_srcdir@/vdsm_cli"
@PYTHON@ @top_srcdir(a)/tests/testrunner.py --local-modules $@
--
To view, visit
http://gerrit.ovirt.org/7648
To unsubscribe, visit
http://gerrit.ovirt.org/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ia4a3ac4d238da59abf558b628fa34cae90006b6e
Gerrit-PatchSet: 1
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Deepak C Shetty <deepakcs(a)linux.vnet.ibm.com>