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,18 +89,26 @@ pip install --no-index --find-links=vendor/$PLATFORM -r requirements.txt
# Test
echo ""
echo "Running tests..."
python -m pytest -v tests/test_vectors.py || {
# 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 || {
echo "ERROR: Tests failed!"
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 "Running built-in smoke test..."
python src/pyhdwallet.py test || {
echo "ERROR: Smoke test failed!"
exit 1
echo "ERROR: Smoke test failed!"
exit 1
}
echo ""
echo "=========================================="
echo "✓ Installation complete and verified!"