#!/usr/bin/env bash # Boot, then run menu_loop_probe.py. Asserts the emulator is ALIVE before the # probe enters its wait loop -- a previous run polled a dead display for 484 s # because run-canary had refused on a lockfile orphaned by `kill -9`, and # "no emulator" is indistinguishable from "not the title yet" to a classifier. set -u export HOME=/sylph-home/re SDL_AUDIODRIVER=dummy DISPLAY=:98 SD="$(cd "$(dirname "$0")" && pwd)" OUT="${1:-/sylph-home/re/menuloop3}"; mkdir -p "$OUT" ps -o pid= -C xenia_canary | xargs -r kill # plain kill: it clears its own lock . "$(dirname "${BASH_SOURCE[0]}")/ensure_single_emulator.sh" ensure_single_emulator || exit 3 ( cd "$OUT" && nohup run-canary --mem_watch=false \ --logged_profile_slot_0_xuid=B13EBABEBABEBABE \ >"$OUT/canary.stdout" 2>"$OUT/canary.stderr" & ) sleep 10 if ! ps -C xenia_canary >/dev/null 2>&1; then echo "EMULATOR DID NOT START -- stderr says:"; tail -3 "$OUT/canary.stderr"; exit 4 fi echo "emulator alive, starting probe" timeout 900 python3 "$SD/menu_loop_probe.py" "$OUT" 780 echo "MENU LOOP PROBE DONE"