#!/usr/bin/env bash set -o pipefail export TMPDIR=$HOME/darkwing-scratch/r190/tmp for i in $(seq 1 240); do ~/darkwing-scratch/busy.sh >/dev/null && break; sleep 5; done ~/darkwing-scratch/busy.sh || { echo "still busy"; exit 9; } cd /mnt/storage/scratch/darkwing-r190/packages/cli || exit 9 rm -f ~/darkwing-scratch/r190/ti8/record.txt TI8_OUT=$HOME/darkwing-scratch/r190/ti8/record.txt node --test tests/zz-ti8-oneshot.test.mjs > ~/darkwing-scratch/r190/ti8/run-3.log 2>&1 echo "rc=$?"