Files
hermes-agent/tests/scripts/install
BearHuddleston fd7ac67c3a test(install): gate the install.sh host tests instead of faking uname
44379fa174 put a uname shim first on PATH so that check_platform in
install.sh saw Linux on Windows. tests/AGENTS.md forbids faking the host.
With the shim, the plain-Linux check asserts a host fact the test supplied
itself, and the repository-stage test runs install.sh on a host where it
refuses to run.

Drop the shim. Mark the repository-stage test platforms("posix"), since
install.sh supports both Linux and macOS, and the plain-Linux platform
check platforms("linux"). On Windows both now skip; the install.ps1
repository-stage test in the same file covers that host.

The macOS lane now imports the repository-stage test. Its scenario,
replayed on a Darwin arm64 host under /bin/bash 3.2 with a throwaway
HOME, exits 0 and parks the local commit on a
refs/hermes-update-backups/diverged-main-* ref, as on Linux.

Reported by Greptile and the sol-loop review on #159146.
2026-11-25 03:50:40 +00:00
..