We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d7ed27b commit 70a9c7fCopy full SHA for 70a9c7f
test_tools.sh
@@ -1,16 +1,19 @@
1
+# Return code
2
+RET=0
3
+
4
echo "Python on path: `which python`"
5
echo "Python cmd: $PYTHON_CMD"
6
$PYTHON_CMD --version
7
+if [ $? -ne 0 ] ; then RET=1; fi
8
9
echo "pip on path: `which pip`"
10
echo "pip cmd: $PIP_CMD"
11
$PIP_CMD --version
12
13
14
echo "virtualenv on path: `which virtualenv`"
15
echo "virtualenv cmd: $VIRTUALENV_CMD"
16
-# Return code
-RET=0
17
18
python_version=`$PYTHON_CMD -c \
19
'import sys; print("{}.{}.{}".format(*sys.version_info[:3]))'`
@@ -90,5 +93,5 @@ else # not virtualenv
90
93
;;
91
94
esac
92
95
fi
-# Set the return code
96
+# Set the final return code
97
(exit $RET)
0 commit comments