Fossil SCM
Marked invocations of fossil that are expected to return a non-zero status with the -expectError flag in the amend, clean, and merge5 test files. This makes tester.tcl -quiet be truely quiet for those files when all tests are passing. Deliberately did not mark the invocation in merge6.test which foreshadows the failure of the merge_multi-4 test, as it is not clear to me whether the bug is in the test case or in fossil.
Commit
62f59956f52bc00ca7f52139d5306b1019ba478f
Parent
4e0e141e0d7249c…
3 files changed
+4
-4
+3
-3
+2
-2
+4
-4
| --- test/amend.test | ||
| +++ test/amend.test | ||
| @@ -221,11 +221,11 @@ | ||
| 221 | 221 | } |
| 222 | 222 | set sc 0 |
| 223 | 223 | foreach badformat $badformats { |
| 224 | 224 | incr sc |
| 225 | 225 | set datetime [clock format $timestamp -format $badformat -gmt 1] |
| 226 | - fossil amend $UUIDINIT -date $datetime | |
| 226 | + fossil amend $UUIDINIT -date $datetime -expectError | |
| 227 | 227 | test amend-date-2.$sc {[string first "YYYY-MM-DD HH:MM:SS" $RESULT] != -1} |
| 228 | 228 | } |
| 229 | 229 | |
| 230 | 230 | ######################################## |
| 231 | 231 | # Test: -hide # |
| @@ -261,11 +261,11 @@ | ||
| 261 | 261 | fossil tag ls --raw $UUIDC |
| 262 | 262 | test amend-close-1.2 {[string first "closed" $RESULT] != -1} |
| 263 | 263 | fossil timeline -n 1 |
| 264 | 264 | test amend-close-1.3 {[string match {*Marked*"Closed".*} $RESULT]} |
| 265 | 265 | write_file datafile "cllf" |
| 266 | -fossil commit -m "should fail" | |
| 266 | +fossil commit -m "should fail" -expectError | |
| 267 | 267 | test amend-close-2 {[string first "closed leaf" $RESULT] != -1} |
| 268 | 268 | |
| 269 | 269 | set UUID3 UUID3 |
| 270 | 270 | fossil revert |
| 271 | 271 | fossil update trunk |
| @@ -285,11 +285,11 @@ | ||
| 285 | 285 | fossil timeline -n 1 |
| 286 | 286 | test amend-close-3.3 { |
| 287 | 287 | [string match "*Add*propagating*\"closed\".*" $RESULT] |
| 288 | 288 | } |
| 289 | 289 | write_file datafile "changed" |
| 290 | -fossil commit -m "should fail" | |
| 290 | +fossil commit -m "should fail" -expectError | |
| 291 | 291 | test amend-close-3.4 {[string first "closed leaf" $RESULT] != -1} |
| 292 | 292 | |
| 293 | 293 | ######################################## |
| 294 | 294 | # Test: -tag/-cancel # |
| 295 | 295 | ######################################## |
| @@ -399,7 +399,7 @@ | ||
| 399 | 399 | } |
| 400 | 400 | |
| 401 | 401 | ######################################## |
| 402 | 402 | # Test: NULL UUID # |
| 403 | 403 | ######################################## |
| 404 | -fossil amend {} -close | |
| 404 | +fossil amend {} -close -expectError | |
| 405 | 405 | test amend-null-uuid {$CODE && [string first "no such check-in" $RESULT] != -1} |
| 406 | 406 |
| --- test/amend.test | |
| +++ test/amend.test | |
| @@ -221,11 +221,11 @@ | |
| 221 | } |
| 222 | set sc 0 |
| 223 | foreach badformat $badformats { |
| 224 | incr sc |
| 225 | set datetime [clock format $timestamp -format $badformat -gmt 1] |
| 226 | fossil amend $UUIDINIT -date $datetime |
| 227 | test amend-date-2.$sc {[string first "YYYY-MM-DD HH:MM:SS" $RESULT] != -1} |
| 228 | } |
| 229 | |
| 230 | ######################################## |
| 231 | # Test: -hide # |
| @@ -261,11 +261,11 @@ | |
| 261 | fossil tag ls --raw $UUIDC |
| 262 | test amend-close-1.2 {[string first "closed" $RESULT] != -1} |
| 263 | fossil timeline -n 1 |
| 264 | test amend-close-1.3 {[string match {*Marked*"Closed".*} $RESULT]} |
| 265 | write_file datafile "cllf" |
| 266 | fossil commit -m "should fail" |
| 267 | test amend-close-2 {[string first "closed leaf" $RESULT] != -1} |
| 268 | |
| 269 | set UUID3 UUID3 |
| 270 | fossil revert |
| 271 | fossil update trunk |
| @@ -285,11 +285,11 @@ | |
| 285 | fossil timeline -n 1 |
| 286 | test amend-close-3.3 { |
| 287 | [string match "*Add*propagating*\"closed\".*" $RESULT] |
| 288 | } |
| 289 | write_file datafile "changed" |
| 290 | fossil commit -m "should fail" |
| 291 | test amend-close-3.4 {[string first "closed leaf" $RESULT] != -1} |
| 292 | |
| 293 | ######################################## |
| 294 | # Test: -tag/-cancel # |
| 295 | ######################################## |
| @@ -399,7 +399,7 @@ | |
| 399 | } |
| 400 | |
| 401 | ######################################## |
| 402 | # Test: NULL UUID # |
| 403 | ######################################## |
| 404 | fossil amend {} -close |
| 405 | test amend-null-uuid {$CODE && [string first "no such check-in" $RESULT] != -1} |
| 406 |
| --- test/amend.test | |
| +++ test/amend.test | |
| @@ -221,11 +221,11 @@ | |
| 221 | } |
| 222 | set sc 0 |
| 223 | foreach badformat $badformats { |
| 224 | incr sc |
| 225 | set datetime [clock format $timestamp -format $badformat -gmt 1] |
| 226 | fossil amend $UUIDINIT -date $datetime -expectError |
| 227 | test amend-date-2.$sc {[string first "YYYY-MM-DD HH:MM:SS" $RESULT] != -1} |
| 228 | } |
| 229 | |
| 230 | ######################################## |
| 231 | # Test: -hide # |
| @@ -261,11 +261,11 @@ | |
| 261 | fossil tag ls --raw $UUIDC |
| 262 | test amend-close-1.2 {[string first "closed" $RESULT] != -1} |
| 263 | fossil timeline -n 1 |
| 264 | test amend-close-1.3 {[string match {*Marked*"Closed".*} $RESULT]} |
| 265 | write_file datafile "cllf" |
| 266 | fossil commit -m "should fail" -expectError |
| 267 | test amend-close-2 {[string first "closed leaf" $RESULT] != -1} |
| 268 | |
| 269 | set UUID3 UUID3 |
| 270 | fossil revert |
| 271 | fossil update trunk |
| @@ -285,11 +285,11 @@ | |
| 285 | fossil timeline -n 1 |
| 286 | test amend-close-3.3 { |
| 287 | [string match "*Add*propagating*\"closed\".*" $RESULT] |
| 288 | } |
| 289 | write_file datafile "changed" |
| 290 | fossil commit -m "should fail" -expectError |
| 291 | test amend-close-3.4 {[string first "closed leaf" $RESULT] != -1} |
| 292 | |
| 293 | ######################################## |
| 294 | # Test: -tag/-cancel # |
| 295 | ######################################## |
| @@ -399,7 +399,7 @@ | |
| 399 | } |
| 400 | |
| 401 | ######################################## |
| 402 | # Test: NULL UUID # |
| 403 | ######################################## |
| 404 | fossil amend {} -close -expectError |
| 405 | test amend-null-uuid {$CODE && [string first "no such check-in" $RESULT] != -1} |
| 406 |
+3
-3
| --- test/clean.test | ||
| +++ test/clean.test | ||
| @@ -136,11 +136,11 @@ | ||
| 136 | 136 | test clean-22 {[normalize_result] eq {f2 |
| 137 | 137 | f4}} |
| 138 | 138 | |
| 139 | 139 | ############################################################################### |
| 140 | 140 | |
| 141 | -fossil undo | |
| 141 | +fossil undo -expectError | |
| 142 | 142 | test clean-23 {[normalize_result] eq {nothing to undo}} |
| 143 | 143 | |
| 144 | 144 | ############################################################################### |
| 145 | 145 | |
| 146 | 146 | # clean w/undo disabled, force, 1 file < 10MiB, 1 file > 10MiB |
| @@ -152,11 +152,11 @@ | ||
| 152 | 152 | fossil extra |
| 153 | 153 | test clean-25 {[normalize_result] eq {}} |
| 154 | 154 | |
| 155 | 155 | ############################################################################### |
| 156 | 156 | |
| 157 | -fossil undo | |
| 157 | +fossil undo -expectError | |
| 158 | 158 | test clean-26 {[normalize_result] eq {nothing to undo}} |
| 159 | 159 | |
| 160 | 160 | ############################################################################### |
| 161 | 161 | |
| 162 | 162 | write_file f5 "f5 line" |
| @@ -178,12 +178,12 @@ | ||
| 178 | 178 | fossil extra |
| 179 | 179 | test clean-29 {[normalize_result] eq {}} |
| 180 | 180 | |
| 181 | 181 | ############################################################################### |
| 182 | 182 | |
| 183 | -fossil undo | |
| 183 | +fossil undo -expectError | |
| 184 | 184 | test clean-30 {[normalize_result] eq {nothing to undo}} |
| 185 | 185 | |
| 186 | 186 | ############################################################################### |
| 187 | 187 | |
| 188 | 188 | fossil extra |
| 189 | 189 | test clean-31 {[normalize_result] eq {}} |
| 190 | 190 |
| --- test/clean.test | |
| +++ test/clean.test | |
| @@ -136,11 +136,11 @@ | |
| 136 | test clean-22 {[normalize_result] eq {f2 |
| 137 | f4}} |
| 138 | |
| 139 | ############################################################################### |
| 140 | |
| 141 | fossil undo |
| 142 | test clean-23 {[normalize_result] eq {nothing to undo}} |
| 143 | |
| 144 | ############################################################################### |
| 145 | |
| 146 | # clean w/undo disabled, force, 1 file < 10MiB, 1 file > 10MiB |
| @@ -152,11 +152,11 @@ | |
| 152 | fossil extra |
| 153 | test clean-25 {[normalize_result] eq {}} |
| 154 | |
| 155 | ############################################################################### |
| 156 | |
| 157 | fossil undo |
| 158 | test clean-26 {[normalize_result] eq {nothing to undo}} |
| 159 | |
| 160 | ############################################################################### |
| 161 | |
| 162 | write_file f5 "f5 line" |
| @@ -178,12 +178,12 @@ | |
| 178 | fossil extra |
| 179 | test clean-29 {[normalize_result] eq {}} |
| 180 | |
| 181 | ############################################################################### |
| 182 | |
| 183 | fossil undo |
| 184 | test clean-30 {[normalize_result] eq {nothing to undo}} |
| 185 | |
| 186 | ############################################################################### |
| 187 | |
| 188 | fossil extra |
| 189 | test clean-31 {[normalize_result] eq {}} |
| 190 |
| --- test/clean.test | |
| +++ test/clean.test | |
| @@ -136,11 +136,11 @@ | |
| 136 | test clean-22 {[normalize_result] eq {f2 |
| 137 | f4}} |
| 138 | |
| 139 | ############################################################################### |
| 140 | |
| 141 | fossil undo -expectError |
| 142 | test clean-23 {[normalize_result] eq {nothing to undo}} |
| 143 | |
| 144 | ############################################################################### |
| 145 | |
| 146 | # clean w/undo disabled, force, 1 file < 10MiB, 1 file > 10MiB |
| @@ -152,11 +152,11 @@ | |
| 152 | fossil extra |
| 153 | test clean-25 {[normalize_result] eq {}} |
| 154 | |
| 155 | ############################################################################### |
| 156 | |
| 157 | fossil undo -expectError |
| 158 | test clean-26 {[normalize_result] eq {nothing to undo}} |
| 159 | |
| 160 | ############################################################################### |
| 161 | |
| 162 | write_file f5 "f5 line" |
| @@ -178,12 +178,12 @@ | |
| 178 | fossil extra |
| 179 | test clean-29 {[normalize_result] eq {}} |
| 180 | |
| 181 | ############################################################################### |
| 182 | |
| 183 | fossil undo -expectError |
| 184 | test clean-30 {[normalize_result] eq {nothing to undo}} |
| 185 | |
| 186 | ############################################################################### |
| 187 | |
| 188 | fossil extra |
| 189 | test clean-31 {[normalize_result] eq {}} |
| 190 |
+2
-2
| --- test/merge5.test | ||
| +++ test/merge5.test | ||
| @@ -222,11 +222,11 @@ | ||
| 222 | 222 | 35815cf5804e8933eab64ae34e00bbb381be72c5 four.txt |
| 223 | 223 | da5c8346496f3421cb58f84b6e59e9531d9d424d one.txt |
| 224 | 224 | ed24d19d726d173f18dbf4a9a0f8514daa3e3ca4 three.txt |
| 225 | 225 | 278a402316510f6ae4a77186796a6bde78c7dbc1 two.txt |
| 226 | 226 | } |
| 227 | -fossil merge br4 | |
| 227 | +fossil merge br4 -expectError | |
| 228 | 228 | checkout-test 121 { |
| 229 | 229 | 35815cf5804e8933eab64ae34e00bbb381be72c5 four.txt |
| 230 | 230 | ed24d19d726d173f18dbf4a9a0f8514daa3e3ca4 three.txt |
| 231 | 231 | 278a402316510f6ae4a77186796a6bde78c7dbc1 two.txt |
| 232 | 232 | } |
| @@ -235,11 +235,11 @@ | ||
| 235 | 235 | checkout-test 122 { |
| 236 | 236 | 6e167b139c294bed560e2e30b352361b101e1f39 four.txt |
| 237 | 237 | ed24d19d726d173f18dbf4a9a0f8514daa3e3ca4 three.txt |
| 238 | 238 | 278a402316510f6ae4a77186796a6bde78c7dbc1 two.txt |
| 239 | 239 | } |
| 240 | -fossil merge br1 | |
| 240 | +fossil merge br1 -expectError | |
| 241 | 241 | checkout-test 123 { |
| 242 | 242 | 6e167b139c294bed560e2e30b352361b101e1f39 four.txt |
| 243 | 243 | ed24d19d726d173f18dbf4a9a0f8514daa3e3ca4 three.txt |
| 244 | 244 | 278a402316510f6ae4a77186796a6bde78c7dbc1 two.txt |
| 245 | 245 | } |
| 246 | 246 |
| --- test/merge5.test | |
| +++ test/merge5.test | |
| @@ -222,11 +222,11 @@ | |
| 222 | 35815cf5804e8933eab64ae34e00bbb381be72c5 four.txt |
| 223 | da5c8346496f3421cb58f84b6e59e9531d9d424d one.txt |
| 224 | ed24d19d726d173f18dbf4a9a0f8514daa3e3ca4 three.txt |
| 225 | 278a402316510f6ae4a77186796a6bde78c7dbc1 two.txt |
| 226 | } |
| 227 | fossil merge br4 |
| 228 | checkout-test 121 { |
| 229 | 35815cf5804e8933eab64ae34e00bbb381be72c5 four.txt |
| 230 | ed24d19d726d173f18dbf4a9a0f8514daa3e3ca4 three.txt |
| 231 | 278a402316510f6ae4a77186796a6bde78c7dbc1 two.txt |
| 232 | } |
| @@ -235,11 +235,11 @@ | |
| 235 | checkout-test 122 { |
| 236 | 6e167b139c294bed560e2e30b352361b101e1f39 four.txt |
| 237 | ed24d19d726d173f18dbf4a9a0f8514daa3e3ca4 three.txt |
| 238 | 278a402316510f6ae4a77186796a6bde78c7dbc1 two.txt |
| 239 | } |
| 240 | fossil merge br1 |
| 241 | checkout-test 123 { |
| 242 | 6e167b139c294bed560e2e30b352361b101e1f39 four.txt |
| 243 | ed24d19d726d173f18dbf4a9a0f8514daa3e3ca4 three.txt |
| 244 | 278a402316510f6ae4a77186796a6bde78c7dbc1 two.txt |
| 245 | } |
| 246 |
| --- test/merge5.test | |
| +++ test/merge5.test | |
| @@ -222,11 +222,11 @@ | |
| 222 | 35815cf5804e8933eab64ae34e00bbb381be72c5 four.txt |
| 223 | da5c8346496f3421cb58f84b6e59e9531d9d424d one.txt |
| 224 | ed24d19d726d173f18dbf4a9a0f8514daa3e3ca4 three.txt |
| 225 | 278a402316510f6ae4a77186796a6bde78c7dbc1 two.txt |
| 226 | } |
| 227 | fossil merge br4 -expectError |
| 228 | checkout-test 121 { |
| 229 | 35815cf5804e8933eab64ae34e00bbb381be72c5 four.txt |
| 230 | ed24d19d726d173f18dbf4a9a0f8514daa3e3ca4 three.txt |
| 231 | 278a402316510f6ae4a77186796a6bde78c7dbc1 two.txt |
| 232 | } |
| @@ -235,11 +235,11 @@ | |
| 235 | checkout-test 122 { |
| 236 | 6e167b139c294bed560e2e30b352361b101e1f39 four.txt |
| 237 | ed24d19d726d173f18dbf4a9a0f8514daa3e3ca4 three.txt |
| 238 | 278a402316510f6ae4a77186796a6bde78c7dbc1 two.txt |
| 239 | } |
| 240 | fossil merge br1 -expectError |
| 241 | checkout-test 123 { |
| 242 | 6e167b139c294bed560e2e30b352361b101e1f39 four.txt |
| 243 | ed24d19d726d173f18dbf4a9a0f8514daa3e3ca4 three.txt |
| 244 | 278a402316510f6ae4a77186796a6bde78c7dbc1 two.txt |
| 245 | } |
| 246 |