Unverified Commit 8e06b1a9 authored by copilot-swe-agent[bot]'s avatar copilot-swe-agent[bot] Committed by GitHub
Browse files

fix: wait on qemu process instead of pipeline tail

parent 7dd9996a
Loading
Loading
Loading
Loading
+10 −10
Original line number Diff line number Diff line
@@ -32,16 +32,16 @@ trap - ERR
version=$(qemu-system-x86_64 --version | head -n 1 | cut -d '(' -f 1 | awk '{ print $NF }')
info "Booting ${APP}${BOOT_DESC} using QEMU v$version..."

qemu-system-x86_64 ${ARGS:+ $ARGS} |
  tee "$QEMU_PTY" |
  sed -u \
{
  qemu-system-x86_64 ${ARGS:+ $ARGS}
} > >(tee "$QEMU_PTY" | sed -u \
        -e 's/\x1B\[[=0-9;]*[a-z]//gi' \
        -e 's/\x1B\x63//g' \
        -e 's/\x1B\[[=?]7l//g' \
        -e '/^$/d' \
        -e 's/\x44\x53\x73//g' \
        -e 's/failed to load Boot/skipped Boot/g' \
    -e 's/0): Not Found/0)/g' &
        -e 's/0): Not Found/0)/g') &

pid=$!
( sleep 30; boot ) &