fix(test): rtk pin check falls back to shasum on macOS

This commit is contained in:
bchanot committed 2026-11-02 19:50:42 +01:00
1 parent 005bfe185d
commit c58b3e7a58
1 file changed
+2 -1
+2 -1
View File
@@ -65,7 +65,8 @@ check T12-rc0-still-rewrites \
"$(shim_raw probe-read | jq -r '.hookSpecificOutput.updatedInput.command')" \
"rtk read probe-read"
check T13-pin-matches \
"$(cd "$(dirname "$H")" && sha256sum -c .rtk-hook.sha256 >/dev/null 2>&1 \
"$(cd "$(dirname "$H")" && { sha256sum -c .rtk-hook.sha256 \
|| shasum -a 256 -c .rtk-hook.sha256; } >/dev/null 2>&1 \
&& echo ok || echo mismatch)" ok
printf 'PASS=%s FAIL=%s\n' "$pass" "$fail"; [ "$fail" -eq 0 ]