1
0

Centralize firmware configuration for tests

This commit is contained in:
2026-03-26 12:21:05 +01:00
parent b14a66ea3d
commit f166a9ffca
7 changed files with 39 additions and 18 deletions

View File

@@ -69,7 +69,7 @@ jobs:
if: steps.check-e2e.outputs.run == 'true' && env.GITEA_ACTIONS != 'true'
run: |
mkdir -p tests/cached_assets
node -e "console.log(JSON.stringify(require('./tests/firmware-config')))" | jq -c '.[]' | while IFS= read -r entry; do
node -e "var c=require('./tests/firmware-config'); console.log(JSON.stringify([c.primary, ...c.others]))" | jq -c '.[]' | while IFS= read -r entry; do
version=$(echo "$entry" | jq -r '.version')
url=$(echo "$entry" | jq -r '.url')
file="tests/cached_assets/kobo-update-${version}.zip"