forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitc13585f
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 parent8021770 commitc13585f
1 file changed
+14
-9
lines changedLines changed: 14 additions & 9 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1173 | 1173 |
| |
1174 | 1174 |
| |
1175 | 1175 |
| |
1176 |
| - | |
| 1176 | + | |
| 1177 | + | |
| 1178 | + | |
| 1179 | + | |
| 1180 | + | |
| 1181 | + | |
1177 | 1182 |
| |
1178 | 1183 |
| |
1179 | 1184 |
| |
| |||
1194 | 1199 |
| |
1195 | 1200 |
| |
1196 | 1201 |
| |
1197 |
| - | |
| 1202 | + | |
1198 | 1203 |
| |
1199 | 1204 |
| |
1200 | 1205 |
| |
| |||
1205 | 1210 |
| |
1206 | 1211 |
| |
1207 | 1212 |
| |
1208 |
| - | |
| 1213 | + | |
1209 | 1214 |
| |
1210 | 1215 |
| |
1211 | 1216 |
| |
1212 | 1217 |
| |
1213 | 1218 |
| |
1214 |
| - | |
| 1219 | + | |
1215 | 1220 |
| |
1216 |
| - | |
| 1221 | + | |
1217 | 1222 |
| |
1218 |
| - | |
| 1223 | + | |
1219 | 1224 |
| |
1220 |
| - | |
| 1225 | + | |
1221 | 1226 |
| |
1222 | 1227 |
| |
1223 | 1228 |
| |
1224 |
| - | |
| 1229 | + | |
1225 | 1230 |
| |
1226 |
| - | |
| 1231 | + | |
1227 | 1232 |
| |
1228 | 1233 |
| |
1229 | 1234 |
| |
|
0 commit comments
Comments
(0)