diff --git a/kobopatch-wasm/test-integration.sh b/kobopatch-wasm/test-integration.sh index a9964e8..6afa957 100755 --- a/kobopatch-wasm/test-integration.sh +++ b/kobopatch-wasm/test-integration.sh @@ -15,6 +15,13 @@ FIRMWARE_FILE="${FIRMWARE_DIR}/kobo-update-${FIRMWARE_VERSION}.zip" cd "$(dirname "$0")" +# Use local Go if available +LOCAL_GO_DIR="$(pwd)/go" +if [ -x "$LOCAL_GO_DIR/bin/go" ]; then + export GOROOT="$LOCAL_GO_DIR" + export PATH="$LOCAL_GO_DIR/bin:$PATH" +fi + # Download firmware if not cached. if [ ! -f "$FIRMWARE_FILE" ]; then echo "Downloading firmware ${FIRMWARE_VERSION} (~150MB)..." diff --git a/test.sh b/test.sh index 18be28b..99f6f29 100755 --- a/test.sh +++ b/test.sh @@ -21,4 +21,7 @@ echo "=== Running WASM integration test ===" echo "" echo "=== Running E2E tests (Playwright) ===" cd "$SCRIPT_DIR/tests/e2e" +if [ ! -d "node_modules" ]; then + npm install +fi npm test