qemu: clear the two shellcheck notes in the prebuilt BusyBox check (flare-edge#2210)
ci / mcdc (push) Successful in 34s
ci / kernel-build (push) Skipped
ci / quality (push) Successful in 46s
ci / bench (push) Successful in 12s
ci / test (push) Successful in 9s
ci / test (pull_request) Successful in 24s
ci / prune-artifacts (pull_request) Skipped
ci / kernel-build (pull_request) Skipped
ci / patches-apply (pull_request) Successful in 21s
ci / prune-artifacts (push) Skipped
ci / patches-apply (push) Successful in 41s
ci / bench (pull_request) Successful in 6s
ci / mcdc (pull_request) Successful in 29s
ci / badges (push) Skipped
ci / kernel-symbols (push) Successful in 1m48s
ci / qemu-tools (push) Successful in 5m39s
ci / quality (pull_request) Successful in 1m44s
ci / badges (pull_request) Skipped
ci / qemu-tools (pull_request) Successful in 3m42s
ci / kernel-symbols (pull_request) Successful in 6m55s

CI's shellcheck 0.9.0 failed qemu-tools on #38: SC2015 on the
`[ -f ] && [ = ] || { ... }` refusal in qemu_get_busybox (now an if), and
SC2012 on the `ls | head` that picks a patch to edit in
busybox-panel-test.sh (now find | sort | head). No behaviour change.

Refs flare-edge#2210

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KerYPVh72hhNgKi3wS5ijG
This commit is contained in:
BFE Engineering
2026-10-29 09:10:37 -06:00
co-authored by Claude Opus 5.5
parent 820af4baaa
commit 8fc32976a5
2 changed files with 4 additions and 3 deletions
+2 -2
View File
@@ -100,10 +100,10 @@ qemu_get_busybox() {
local want got
want="$(qemu_busybox_panel_inputs)"
got="$(cat "$BUSYBOX.inputs" 2>/dev/null || true)"
[ -f "$BUSYBOX" ] && [ "$got" = "$want" ] || {
if [ ! -f "$BUSYBOX" ] || [ "$got" != "$want" ]; then
echo "FATAL: BUSYBOX=$BUSYBOX is not a panel BusyBox built from this tree's qemu/busybox/ ($BUSYBOX.inputs '${got:-missing}', want '$want'): run qemu/build-busybox.sh" >&2
exit 1
}
fi
BB="$BUSYBOX"
qemu_log "panel busybox: prebuilt $BB (inputs $want)"
return
+2 -1
View File
@@ -149,7 +149,8 @@ mkdir -p "$SCRATCH/qcopy"
cp -a "$QEMU_DIR/busybox" "$SCRATCH/qcopy/"
printf '# CONFIG_TIMEOUT is not set\n' >> "$SCRATCH/qcopy/busybox/panel.config"
other="$(QEMU_DIR="$SCRATCH/qcopy" qemu_busybox_panel_inputs)"
printf 'x\n' >> "$SCRATCH/qcopy/busybox/patches/$(ls "$QEMU_DIR/busybox/patches" | head -n 1)"
first_patch="$(find "$SCRATCH/qcopy/busybox/patches" -maxdepth 1 -type f -name '*.patch' | sort | head -n 1)"
printf 'x\n' >> "$first_patch"
other2="$(QEMU_DIR="$SCRATCH/qcopy" qemu_busybox_panel_inputs)"
if [ "$other" != "$inputs" ] && [ "$other2" != "$other" ]; then
pass "a panel.config or patch edit changes qemu_busybox_panel_inputs"