This commit is contained in:
1 parent
57add9e337
commit
425f5b4272
1 file changed
+6
-2
+6
-2
@@ -3,11 +3,15 @@
|
|||||||
|
|
||||||
cd "$(dirname "$0")"
|
cd "$(dirname "$0")"
|
||||||
|
|
||||||
# Use full python path if in Hermes environment
|
# Default to Hermes python (has pytest), fall back to system python
|
||||||
if [ -f "/opt/hermes/tools/python-3.14.9+202****1021-linux-x64/bin/python" ]; then
|
if [ -f "/opt/hermes/tools/python-3.14.9+202****1021-linux-x64/bin/python" ]; then
|
||||||
PYTHON="/opt/hermes/tools/python-3.14.9+202****1021-linux-x64/bin/python"
|
PYTHON="/opt/hermes/tools/python-3.14.9+202****1021-linux-x64/bin/python"
|
||||||
else
|
elif command -v python3 &>/dev/null && python3 -c "import pytest" 2>/dev/null; then
|
||||||
PYTHON="python3"
|
PYTHON="python3"
|
||||||
|
else
|
||||||
|
echo "Error: pytest not found. Try:"
|
||||||
|
echo " pip install pytest numpy psutil Pillow"
|
||||||
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "Running tests with: $PYTHON"
|
echo "Running tests with: $PYTHON"
|
||||||
|
|||||||
Reference in new issue
Block a user