Commit 06aa907
committed
Improve assertion logging
* Log all assertions, not just a few select ones.
* Don't log assertion arguments because that would be too verbose.
Instead, log only the file and the line where the assertion is
checked. It should be enough for debugging.
* Log where helpers.retrying is called. Also, fix formatting of
fractional seconds.
* Log test errors and failures so that one can figure out where
the test failed by just looking at the unified log, without
the luatest output.
No changelog because the feature was added by commit d985997
("Add more logs"), which hasn't been released yet.1 parent 8a490e9 commit 06aa907
File tree
4 files changed
+22
-11
lines changed- luatest
- test
4 files changed
+22
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
14 | 15 | | |
15 | 16 | | |
16 | 17 | | |
| |||
271 | 272 | | |
272 | 273 | | |
273 | 274 | | |
274 | | - | |
275 | 275 | | |
276 | 276 | | |
277 | 277 | | |
| |||
378 | 378 | | |
379 | 379 | | |
380 | 380 | | |
381 | | - | |
382 | 381 | | |
383 | 382 | | |
384 | 383 | | |
| |||
502 | 501 | | |
503 | 502 | | |
504 | 503 | | |
505 | | - | |
506 | | - | |
507 | 504 | | |
508 | 505 | | |
509 | 506 | | |
| |||
646 | 643 | | |
647 | 644 | | |
648 | 645 | | |
649 | | - | |
650 | 646 | | |
651 | 647 | | |
652 | 648 | | |
| |||
891 | 887 | | |
892 | 888 | | |
893 | 889 | | |
| 890 | + | |
| 891 | + | |
| 892 | + | |
| 893 | + | |
| 894 | + | |
| 895 | + | |
| 896 | + | |
| 897 | + | |
| 898 | + | |
| 899 | + | |
| 900 | + | |
| 901 | + | |
894 | 902 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
7 | 8 | | |
8 | 9 | | |
9 | 10 | | |
| |||
69 | 70 | | |
70 | 71 | | |
71 | 72 | | |
72 | | - | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
73 | 77 | | |
74 | 78 | | |
75 | 79 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
548 | 548 | | |
549 | 549 | | |
550 | 550 | | |
| 551 | + | |
| 552 | + | |
| 553 | + | |
| 554 | + | |
551 | 555 | | |
552 | 556 | | |
553 | 557 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
103 | 103 | | |
104 | 104 | | |
105 | 105 | | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | 106 | | |
112 | 107 | | |
113 | 108 | | |
| |||
0 commit comments