modify air gap install script
This commit is contained in:
@@ -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!"
|
||||
|
||||
Reference in New Issue
Block a user