tests/test-hang/run-test-hang-tests.sh needs flex and bison for its kernel
configuration expansions, but it checked only for python and the cross
compiler. On farm host 0056 (no flex or bison) both expansions FAILed with
"flex: not found", and the failure named a log under the script's temp
directory that the EXIT trap deletes, so the cause was not visible.
The configuration checks now SKIP with a notice when flex or bison is not on
PATH, as they already do for a missing python or cross compiler. The tool
checks run before the tarball fetch, so a host without them fetches nothing.
A failed fetch or expansion prints the last 40 lines of its log before the
script exits.
tests/test-hang/run-missing-tools-tests.sh covers both: with flex or with
bison missing the checks SKIP and the script passes, and a failed fetch FAILs
and prints its log tail. Each case is hermetic (a PATH with only the base
tools and fakes; nothing is compiled or downloaded).
Fixes#54
Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B1W6qGNpGNtFT7nhShpH56