modify air gap install script
This commit is contained in:
@@ -89,10 +89,17 @@ pip install --no-index --find-links=vendor/$PLATFORM -r requirements.txt
|
|||||||
# Test
|
# Test
|
||||||
echo ""
|
echo ""
|
||||||
echo "Running tests..."
|
echo "Running tests..."
|
||||||
|
|
||||||
|
# Optional: run pytest if available (dev-only)
|
||||||
|
if python -c "import pytest" >/dev/null 2>&1; then
|
||||||
python -m pytest -v tests/test_vectors.py || {
|
python -m pytest -v tests/test_vectors.py || {
|
||||||
echo "ERROR: Tests failed!"
|
echo "ERROR: Tests failed!"
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
echo "⚠️ pytest not installed; skipping pytest suite."
|
||||||
|
echo " (To enable: install dev deps or run 'pip install -r requirements-dev.txt' if available offline.)"
|
||||||
|
fi
|
||||||
|
|
||||||
echo ""
|
echo ""
|
||||||
echo "Running built-in smoke test..."
|
echo "Running built-in smoke test..."
|
||||||
@@ -101,6 +108,7 @@ python src/pyhdwallet.py test || {
|
|||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
echo ""
|
echo ""
|
||||||
echo "=========================================="
|
echo "=========================================="
|
||||||
echo "✓ Installation complete and verified!"
|
echo "✓ Installation complete and verified!"
|
||||||
|
|||||||
Reference in New Issue
Block a user