Change in vdsm[master]: tests: Make python version configurable

smizrahi at redhat.com smizrahi at redhat.com
Sat Jan 26 00:08:22 UTC 2013


Saggi Mizrahi has uploaded a new change for review.

Change subject: tests: Make python version configurable
......................................................................

tests: Make python version configurable

This is good if you want to run a debugger shell (like winpdb) instead
of just running vanilla python.

Change-Id: I21986bca22088100bb88deba32e17e7dcead5b5d
Signed-off-by: Saggi Mizrahi <smizrahi at redhat.com>
---
M tests/run_tests_local.sh.in
1 file changed, 5 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/99/11399/1

diff --git a/tests/run_tests_local.sh.in b/tests/run_tests_local.sh.in
index 8f668f9..d1a6d32 100644
--- a/tests/run_tests_local.sh.in
+++ b/tests/run_tests_local.sh.in
@@ -1,2 +1,6 @@
 #!/bin/sh
-PYTHONDONTWRITEBYTECODE=1 LC_ALL=C PYTHONPATH="@builddir@/vdsm:@top_srcdir@/vdsm:@top_srcdir@/vdsm_cli:@top_srcdir@/vdsm_api:$PYTHONPATH" @PYTHON@ @top_srcdir@/tests/testrunner.py --local-modules $@
+if [ -z "$PYTHON_EXE" ]; then
+	PYTHON_EXE="@PYTHON@";
+fi
+
+PYTHONDONTWRITEBYTECODE=1 LC_ALL=C PYTHONPATH="@builddir@/vdsm:@top_srcdir@/vdsm:@top_srcdir@/vdsm_cli:@top_srcdir@/vdsm_api:$PYTHONPATH" $PYTHON_EXE @top_srcdir@/tests/testrunner.py --local-modules $@


--
To view, visit http://gerrit.ovirt.org/11399
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I21986bca22088100bb88deba32e17e7dcead5b5d
Gerrit-PatchSet: 1
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Saggi Mizrahi <smizrahi at redhat.com>


More information about the vdsm-patches mailing list