Fossil SCM

Update hash regexp to defend against full length SHA3 hashes.

rberteig 2017-03-14 21:15 trunk
Commit 38115a0bd96c3788e36506b965f938bd31f0d0b65cf26dd7866abefb80a9a15d
1 file changed +1 -1
--- test/th1-docs.test
+++ test/th1-docs.test
@@ -61,11 +61,11 @@
6161
set RESULT [test_fossil_http \
6262
$repository $dataFileName /doc/trunk/test/fileStat.th1]
6363
}
6464
6565
test th1-docs-1a {[regexp {<title>Fossil: test/fileStat.th1</title>} $RESULT]}
66
-test th1-docs-1b {[regexp {>\[[0-9a-f]{40}\]<} $RESULT]}
66
+test th1-docs-1b {[regexp {>\[[0-9a-f]{40,64}\]<} $RESULT]}
6767
test th1-docs-1c {[regexp { contains \d+ files\.} $RESULT]}
6868
6969
###############################################################################
7070
7171
test_cleanup
7272
--- test/th1-docs.test
+++ test/th1-docs.test
@@ -61,11 +61,11 @@
61 set RESULT [test_fossil_http \
62 $repository $dataFileName /doc/trunk/test/fileStat.th1]
63 }
64
65 test th1-docs-1a {[regexp {<title>Fossil: test/fileStat.th1</title>} $RESULT]}
66 test th1-docs-1b {[regexp {>\[[0-9a-f]{40}\]<} $RESULT]}
67 test th1-docs-1c {[regexp { contains \d+ files\.} $RESULT]}
68
69 ###############################################################################
70
71 test_cleanup
72
--- test/th1-docs.test
+++ test/th1-docs.test
@@ -61,11 +61,11 @@
61 set RESULT [test_fossil_http \
62 $repository $dataFileName /doc/trunk/test/fileStat.th1]
63 }
64
65 test th1-docs-1a {[regexp {<title>Fossil: test/fileStat.th1</title>} $RESULT]}
66 test th1-docs-1b {[regexp {>\[[0-9a-f]{40,64}\]<} $RESULT]}
67 test th1-docs-1c {[regexp { contains \d+ files\.} $RESULT]}
68
69 ###############################################################################
70
71 test_cleanup
72

Keyboard Shortcuts

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