Fossil SCM

When rewriting test output, also mask SQLite hash and version.

preben 2023-12-15 21:10 testing-improvements
Commit 7da44faa22f02ecc0fc65ff788b2b0b9e95f74c6dd1e2c7ffaf1c49a94a8be10
--- test/rewrite-test-output.tcl
+++ test/rewrite-test-output.tcl
@@ -155,10 +155,12 @@
155155
{\1UID\2}
156156
{("uncompressedArtifactSize":)\d+()}
157157
{\1SIZE\2}
158158
{("user":").+?(")}
159159
{\1USER\2}
160
+ {("version":"YYYY-mm-dd HH:MM:SS )\[[0-9a-f]{10}\] \(\d+\.\d+\.\d+\)"}
161
+ {\1[HASH] (major.minor.patch)}
160162
{^(Date:) [A-Z][a-z]{2}, \d\d? [A-Z][a-z]{2} \d{4} \d\d:\d\d:\d\d [-+]\d{4}$}
161163
{\1 Day, dd Mon YYYY HH:MM:SS TZ}
162164
}
163165
164166
dict set tests "merge_renames" {
165167
--- test/rewrite-test-output.tcl
+++ test/rewrite-test-output.tcl
@@ -155,10 +155,12 @@
155 {\1UID\2}
156 {("uncompressedArtifactSize":)\d+()}
157 {\1SIZE\2}
158 {("user":").+?(")}
159 {\1USER\2}
 
 
160 {^(Date:) [A-Z][a-z]{2}, \d\d? [A-Z][a-z]{2} \d{4} \d\d:\d\d:\d\d [-+]\d{4}$}
161 {\1 Day, dd Mon YYYY HH:MM:SS TZ}
162 }
163
164 dict set tests "merge_renames" {
165
--- test/rewrite-test-output.tcl
+++ test/rewrite-test-output.tcl
@@ -155,10 +155,12 @@
155 {\1UID\2}
156 {("uncompressedArtifactSize":)\d+()}
157 {\1SIZE\2}
158 {("user":").+?(")}
159 {\1USER\2}
160 {("version":"YYYY-mm-dd HH:MM:SS )\[[0-9a-f]{10}\] \(\d+\.\d+\.\d+\)"}
161 {\1[HASH] (major.minor.patch)}
162 {^(Date:) [A-Z][a-z]{2}, \d\d? [A-Z][a-z]{2} \d{4} \d\d:\d\d:\d\d [-+]\d{4}$}
163 {\1 Day, dd Mon YYYY HH:MM:SS TZ}
164 }
165
166 dict set tests "merge_renames" {
167

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button