da449b4fe2039f200a2f93d5209c48fe98c0a534
braney
  Tue Sep 29 10:58:30 2026 -0700
cartPcrVarTester: which hgPcrResult_ cart variables survive a cart load, refs #38442

Feeds hgPcrResult_ variables through cartParseOverHash() and says which are
kept.  With the cart.c fix backed out it shows hgPcrResult_imgOrd dropped and
nothing else changes.  Registry row and catalog note added.

diff --git src/hg/lib/tests/expected/cartPcrVarTest src/hg/lib/tests/expected/cartPcrVarTest
new file mode 100644
index 00000000000..c42dbd92afc
--- /dev/null
+++ src/hg/lib/tests/expected/cartPcrVarTest
@@ -0,0 +1,13 @@
+track settings that share the prefix are kept
+  hgPcrResult_imgOrd         3                                        kept
+  hgPcrResult_targetStyle    box                                      kept
+a result pair of trash files is kept
+  hgPcrResult_hg38           two trash files                          kept
+  hgPcrResult_hg38           two trash files and a target             kept
+a result that does not name two trash files is dropped
+  hgPcrResult_hg38           3                                        dropped
+  hgPcrResult_hg38           a psl file outside the trash             dropped
+  hgPcrResult_hg38           a primer file outside the trash          dropped
+the exclusions are exact names, not suffixes
+  hgPcrResult_hg38_imgOrd    two files outside the trash              dropped
+  hgPcrResult_imgOrdx        two files outside the trash              dropped