Commit 34585419 authored by Vincent Pelletier's avatar Vincent Pelletier

shell/caucase.sh: Give precedence to CAUCASE_PYTHON.

If environment points us at a specific python interpreter, use it to run
caucased, even if caucased is present reachable from PATH.
parent ad4af0ae
...@@ -1199,11 +1199,11 @@ EOF ...@@ -1199,11 +1199,11 @@ EOF
exit 1 exit 1
} }
echo 'Automated testing...' echo 'Automated testing...'
if command -v caucased > /dev/null; then if [ "x${CAUCASE_PYTHON:-}" != "x" ] && [ -x "$CAUCASE_PYTHON" ]; then
caucased_type="path"
elif [ "x${CAUCASE_PYTHON:-}" != "x" ] && [ -x "$CAUCASE_PYTHON" ]; then
# Used when ran from python caucase.test # Used when ran from python caucase.test
caucased_type="environment" caucased_type="environment"
elif command -v caucased > /dev/null; then
caucased_type="path"
else else
echo 'caucased not found in PATH, cannot run tests' >&2 echo 'caucased not found in PATH, cannot run tests' >&2
return 1 return 1
......
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