forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit7a9eaf1
committed
Fix pattern matching logic for logs in TAP tests of pgbench
The logic checking for the format of per-thread logs used grep() withdirectly "$re", which would cause the test to consider all the logs asa match without caring about their format at all. Using "/$re/" makesgrep() perform a regex test, which is what we want here.While on it, improve some of the tests to be more picky with thepatterns expected and add more comments to describe the tests.Issue discovered while digging into a separate patch.Author: Fabien Coelho, Michael PaquierDiscussion:https://postgr.es/m/YNPsPAUoVDCpPOGk@paquier.xyzBackpatch-through: 111 parent56e366f commit7a9eaf1
1 file changed
+14
-9
lines changedLines changed: 14 additions & 9 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1043 | 1043 |
| |
1044 | 1044 |
| |
1045 | 1045 |
| |
1046 |
| - | |
| 1046 | + | |
| 1047 | + | |
| 1048 | + | |
| 1049 | + | |
| 1050 | + | |
| 1051 | + | |
1047 | 1052 |
| |
1048 | 1053 |
| |
1049 | 1054 |
| |
| |||
1064 | 1069 |
| |
1065 | 1070 |
| |
1066 | 1071 |
| |
1067 |
| - | |
| 1072 | + | |
1068 | 1073 |
| |
1069 | 1074 |
| |
1070 | 1075 |
| |
| |||
1075 | 1080 |
| |
1076 | 1081 |
| |
1077 | 1082 |
| |
1078 |
| - | |
| 1083 | + | |
1079 | 1084 |
| |
1080 | 1085 |
| |
1081 | 1086 |
| |
1082 | 1087 |
| |
1083 | 1088 |
| |
1084 |
| - | |
| 1089 | + | |
1085 | 1090 |
| |
1086 |
| - | |
| 1091 | + | |
1087 | 1092 |
| |
1088 |
| - | |
| 1093 | + | |
1089 | 1094 |
| |
1090 |
| - | |
| 1095 | + | |
1091 | 1096 |
| |
1092 | 1097 |
| |
1093 | 1098 |
| |
1094 |
| - | |
| 1099 | + | |
1095 | 1100 |
| |
1096 |
| - | |
| 1101 | + | |
1097 | 1102 |
| |
1098 | 1103 |
| |
1099 | 1104 |
| |
|
0 commit comments
Comments
(0)