Fossil SCM
Small logic errors in two test files
Commit
e7c7e03ce4ea9e1aff7c4a158064ca25228c94e89fcb59d6803fcdecda187e69
Parent
b06c3a76277ab0a…
2 files changed
+2
-2
+1
-1
+2
-2
| --- test/rewrite-test-output.tcl | ||
| +++ test/rewrite-test-output.tcl | ||
| @@ -174,11 +174,11 @@ | ||
| 174 | 174 | {\1USER\2} |
| 175 | 175 | } |
| 176 | 176 | |
| 177 | 177 | dict set tests "set-manifest" { |
| 178 | 178 | {^(project-code: )[0-9a-f]{40}$} |
| 179 | - {\1HASH} line | |
| 179 | + {\1HASH} | |
| 180 | 180 | } |
| 181 | 181 | |
| 182 | 182 | dict set tests "stash" { |
| 183 | 183 | {^(---|\+\+\+) NUL$} |
| 184 | 184 | {\1 /dev/null} |
| @@ -256,11 +256,11 @@ | ||
| 256 | 256 | {^(This is unversioned file #4\. PID SEC) \d+ \d+} |
| 257 | 257 | {\1 PID SEC} |
| 258 | 258 | {^[0-9a-f]{12}( YYYY-mm-dd HH:MM:SS *)(\d+)( *)\2( unversioned4.txt)$} |
| 259 | 259 | {HASH \1SZ\3SZ\4} |
| 260 | 260 | {^[0-9a-f]{40}$} |
| 261 | - {\1HASH} | |
| 261 | + {HASH} | |
| 262 | 262 | {^((?:Clone|Pull)? done, wire bytes sent: )\d+( received: )\d+( remote: )(?:127\.0.0\.1|::1)$} |
| 263 | 263 | {\1SENT\2RECV\3LOCALIP} |
| 264 | 264 | {^(project-id: )[0-9a-f]{40}$} |
| 265 | 265 | {\1HASH} |
| 266 | 266 | {^(server-id: )[0-9a-f]{40}$} |
| 267 | 267 |
| --- test/rewrite-test-output.tcl | |
| +++ test/rewrite-test-output.tcl | |
| @@ -174,11 +174,11 @@ | |
| 174 | {\1USER\2} |
| 175 | } |
| 176 | |
| 177 | dict set tests "set-manifest" { |
| 178 | {^(project-code: )[0-9a-f]{40}$} |
| 179 | {\1HASH} line |
| 180 | } |
| 181 | |
| 182 | dict set tests "stash" { |
| 183 | {^(---|\+\+\+) NUL$} |
| 184 | {\1 /dev/null} |
| @@ -256,11 +256,11 @@ | |
| 256 | {^(This is unversioned file #4\. PID SEC) \d+ \d+} |
| 257 | {\1 PID SEC} |
| 258 | {^[0-9a-f]{12}( YYYY-mm-dd HH:MM:SS *)(\d+)( *)\2( unversioned4.txt)$} |
| 259 | {HASH \1SZ\3SZ\4} |
| 260 | {^[0-9a-f]{40}$} |
| 261 | {\1HASH} |
| 262 | {^((?:Clone|Pull)? done, wire bytes sent: )\d+( received: )\d+( remote: )(?:127\.0.0\.1|::1)$} |
| 263 | {\1SENT\2RECV\3LOCALIP} |
| 264 | {^(project-id: )[0-9a-f]{40}$} |
| 265 | {\1HASH} |
| 266 | {^(server-id: )[0-9a-f]{40}$} |
| 267 |
| --- test/rewrite-test-output.tcl | |
| +++ test/rewrite-test-output.tcl | |
| @@ -174,11 +174,11 @@ | |
| 174 | {\1USER\2} |
| 175 | } |
| 176 | |
| 177 | dict set tests "set-manifest" { |
| 178 | {^(project-code: )[0-9a-f]{40}$} |
| 179 | {\1HASH} |
| 180 | } |
| 181 | |
| 182 | dict set tests "stash" { |
| 183 | {^(---|\+\+\+) NUL$} |
| 184 | {\1 /dev/null} |
| @@ -256,11 +256,11 @@ | |
| 256 | {^(This is unversioned file #4\. PID SEC) \d+ \d+} |
| 257 | {\1 PID SEC} |
| 258 | {^[0-9a-f]{12}( YYYY-mm-dd HH:MM:SS *)(\d+)( *)\2( unversioned4.txt)$} |
| 259 | {HASH \1SZ\3SZ\4} |
| 260 | {^[0-9a-f]{40}$} |
| 261 | {HASH} |
| 262 | {^((?:Clone|Pull)? done, wire bytes sent: )\d+( received: )\d+( remote: )(?:127\.0.0\.1|::1)$} |
| 263 | {\1SENT\2RECV\3LOCALIP} |
| 264 | {^(project-id: )[0-9a-f]{40}$} |
| 265 | {\1HASH} |
| 266 | {^(server-id: )[0-9a-f]{40}$} |
| 267 |
+1
-1
| --- test/th1-docs.test | ||
| +++ test/th1-docs.test | ||
| @@ -49,11 +49,11 @@ | ||
| 49 | 49 | |
| 50 | 50 | set dataFileName [file join $::testfiledir th1-docs-input.txt] |
| 51 | 51 | set origFileStat [file join $::testfiledir fileStat.th1] |
| 52 | 52 | |
| 53 | 53 | if {![file exists $origFileStat]} { |
| 54 | - error "unable to locate [$origFileStat]" | |
| 54 | + error "unable to locate $origFileStat" | |
| 55 | 55 | } |
| 56 | 56 | |
| 57 | 57 | file copy $origFileStat fileStat.th1 |
| 58 | 58 | fossil add fileStat.th1 |
| 59 | 59 | fossil commit -m "Add fileStat.th1" |
| 60 | 60 |
| --- test/th1-docs.test | |
| +++ test/th1-docs.test | |
| @@ -49,11 +49,11 @@ | |
| 49 | |
| 50 | set dataFileName [file join $::testfiledir th1-docs-input.txt] |
| 51 | set origFileStat [file join $::testfiledir fileStat.th1] |
| 52 | |
| 53 | if {![file exists $origFileStat]} { |
| 54 | error "unable to locate [$origFileStat]" |
| 55 | } |
| 56 | |
| 57 | file copy $origFileStat fileStat.th1 |
| 58 | fossil add fileStat.th1 |
| 59 | fossil commit -m "Add fileStat.th1" |
| 60 |
| --- test/th1-docs.test | |
| +++ test/th1-docs.test | |
| @@ -49,11 +49,11 @@ | |
| 49 | |
| 50 | set dataFileName [file join $::testfiledir th1-docs-input.txt] |
| 51 | set origFileStat [file join $::testfiledir fileStat.th1] |
| 52 | |
| 53 | if {![file exists $origFileStat]} { |
| 54 | error "unable to locate $origFileStat" |
| 55 | } |
| 56 | |
| 57 | file copy $origFileStat fileStat.th1 |
| 58 | fossil add fileStat.th1 |
| 59 | fossil commit -m "Add fileStat.th1" |
| 60 |