modify air gap install script

This commit is contained in:
LC mac
2026-01-12 15:58:48 +08:00
parent b47935de86
commit 7fb54420ec

View File

@@ -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!"