SchOS/tools
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Nexoniarz 6e23d2a466 bootcheck: make the prompt wait survive a slow guest
Three bugs, all of which surfaced as a failed check somewhere other than
the command that was actually slow.

Wait-Prompt waited a fixed 20 s. These tests run under TCG, not KVM, and
a cold `ls /bin | wc -l` takes 23 s on the Fedora laptop measured with
the guest's own /proc/uptime -- it was over the wall every time. Raised
to 60 s; a long timeout only costs time when something is genuinely
wrong, a short one costs a false failure elsewhere.

It also matched a prompt anywhere in the transcript. Between writing a
command and the guest echoing it the log still ends with the previous
prompt, so it could return before the command had started and the next
one was typed on top of it. Anchor the match to text produced after the
command was sent.

On timeout it slept two seconds and typed regardless, which is what
turned one slow command into an interleaved transcript and a failure
attributed to a later check. Wait for output to stop arriving instead.

Report any command that never produced a prompt next to the result:
after one overrun every later check is reading a transcript that may be
interleaved, and that should not be something you have to notice in the
scrollback.

With this, -Fb -Tty -Usb -Sock -Evdev -Ps is 108 [ok], 0 misses.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-08-09 21:18:09 +02:00
..
posix Prepare for the move to Fedora 2026-08-09 17:25:07 +02:00
python tools: group scripts by what runs them 2026-08-09 14:38:02 +02:00
windows bootcheck: make the prompt wait survive a slow guest 2026-08-09 21:18:09 +02:00
mkfs.c Fix two bugs the Fedora move exposed 2026-08-09 19:29:21 +02:00
mkschfs.c Build and tools work on Linux, macOS and BSD as well as Windows 2026-08-09 14:24:53 +02:00
padstage2.pl Initial commit: Schunix as it stands before the SchOS rename 2026-08-09 13:47:01 +02:00
pr.pl Initial commit: Schunix as it stands before the SchOS rename 2026-08-09 13:47:01 +02:00
qrtest.c Rename Schunix to SchOS; the kernel becomes SchIFT 2026-08-09 14:09:59 +02:00
schfs_fsck.c tools: group scripts by what runs them 2026-08-09 14:38:02 +02:00
schfs_objtest.c Initial commit: Schunix as it stands before the SchOS rename 2026-08-09 13:47:01 +02:00
schfs_test.c Initial commit: Schunix as it stands before the SchOS rename 2026-08-09 13:47:01 +02:00
sign.pl Initial commit: Schunix as it stands before the SchOS rename 2026-08-09 13:47:01 +02:00
ttftest.c Initial commit: Schunix as it stands before the SchOS rename 2026-08-09 13:47:01 +02:00
vectors.pl Initial commit: Schunix as it stands before the SchOS rename 2026-08-09 13:47:01 +02:00