Skip to content

Local code intelligence for developers and AI agents. Connect code, docs and infrastructure in a persistent graph, with CBM Lens, MCP tools, agent integrations and change-aware test selection.

test(vt): drop the cmp dependency from the release-notes contract

Martin Vogelfe7f3712084a
diff --git a/tests/test_vt_release_notes_contract.sh b/tests/test_vt_release_notes_contract.sh
index 79c61af31..bdca619ee 100644
--- a/tests/test_vt_release_notes_contract.sh
+++ b/tests/test_vt_release_notes_contract.sh
@@ -118,7 +118,10 @@ done
! grep -q '70+' "$FIX/first.md" || fail "unmeasured engine claim returned"
run_notes "$FIX/first.md" "$FIX/second.md"
-cmp -s "$FIX/first.md" "$FIX/second.md" || fail "marked release-note update is not idempotent"
+# python3 rather than cmp/diff: this contract runs on the Windows VM's MSYS2
+# shell too, where neither is guaranteed to be on PATH (cmp is not).
+python3 -c 'import sys;sys.exit(0 if open(sys.argv[1],"rb").read()==open(sys.argv[2],"rb").read() else 1)' \
+ "$FIX/first.md" "$FIX/second.md" || fail "marked release-note update is not idempotent"
cp "$FIX/binaries/vt-results.tsv" "$FIX/binaries/vt-results.clean.tsv"
printf '\textra-cell\n' >> "$FIX/binaries/vt-results.tsv"