aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-05-23 04:08:53 -0500
committerCraig Jennings <c@cjennings.net>2026-05-23 04:08:53 -0500
commit98fc424f7edb26314ffe124d3bc24549146a06d5 (patch)
treed0bfa15c8ac6bcfe0fc7d219e65fe37396a3af70 /docs
parent3165c50fed266fef0b388190296c149c0ae0ee47 (diff)
downloadarchangel-98fc424f7edb26314ffe124d3bc24549146a06d5.tar.gz
archangel-98fc424f7edb26314ffe124d3bc24549146a06d5.zip
test: cover disk_in_use and network_available failure paths
These two boundary functions backed the pre-flight guards from #215 but had no unit coverage of their own. The VM harness exercised them instead. I added 7 bats tests that mock the system commands they query, so the real branching logic runs. test_disk.bats covers disk_in_use across mountpoint, active swap, imported-zpool member, and idle — that's the gate that refuses to wipe an already-mounted disk. test_archangel.bats covers network_available for DNS failure, TCP-connect failure, and success, the check that fails the install before pacstrap. The /proc/mdstat-positive branch and the live probes stay in the VM harness, since neither drives cleanly without writing to /proc or hitting the network. Suite 238 to 245, lint clean.
Diffstat (limited to 'docs')
0 files changed, 0 insertions, 0 deletions