- Notifications
You must be signed in to change notification settings - Fork4.9k
Commit1ea0620
committed
Improve logging of TAP tests.
Create a log file for each test run. Stdout and stderr of the test script,as well as any subprocesses run as part of the test, are redirected tothe log file. This makes it a lot easier to debug test failures. Also printthe test output (ok 12 - ... messages) to the log file, and the commandline of any external programs executed with the system_or_bail and run_logfunctions. This makes it a lot easier to debug failing tests.Modify some of the pg_ctl and other command invocations to not use 'silent'or 'quiet' options, and don't redirect output to /dev/null, so that you getall the information in the log instead.In the passing, construct some command lines in a way that works if $tempdircontains quote-characters. I haven't systematically gone through all ofthem or tested that, so I don't know if this is enough to make that work.pg_rewind tests had a custom mechanism for creating a similar log file. Usethe new generic facility instead.Michael Paquier and me.1 parent01051a9 commit1ea0620
File tree
14 files changed
+143
-85
lines changed- src
- bin
- pg_basebackup/t
- pg_controldata/t
- pg_ctl/t
- pg_rewind
- t
- test
- perl
- ssl
14 files changed
+143
-85
lines changedLines changed: 1 addition & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
337 | 337 |
| |
338 | 338 |
| |
339 | 339 |
| |
| 340 | + | |
340 | 341 |
| |
341 | 342 |
| |
342 | 343 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
30 | 30 |
| |
31 | 31 |
| |
32 | 32 |
| |
33 |
| - | |
| 33 | + | |
34 | 34 |
| |
35 | 35 |
| |
36 | 36 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
11 | 11 |
| |
12 | 12 |
| |
13 | 13 |
| |
14 |
| - | |
| 14 | + | |
15 | 15 |
| |
16 | 16 |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
36 | 36 |
| |
37 | 37 |
| |
38 | 38 |
| |
39 |
| - | |
| 39 | + |
Lines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
18 | 18 |
| |
19 | 19 |
| |
20 | 20 |
| |
21 |
| - | |
| 21 | + | |
22 | 22 |
| |
23 | 23 |
| |
24 | 24 |
| |
25 | 25 |
| |
26 |
| - | |
| 26 | + |
Lines changed: 0 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
4 | 4 |
| |
5 | 5 |
| |
6 | 6 |
| |
7 |
| - |
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
45 | 45 |
| |
46 | 46 |
| |
47 | 47 |
| |
48 |
| - | |
| 48 | + | |
49 | 49 |
| |
50 | 50 |
| |
51 | 51 |
| |
|
Lines changed: 32 additions & 53 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
79 | 79 |
| |
80 | 80 |
| |
81 | 81 |
| |
82 |
| - | |
83 | 82 |
| |
84 | 83 |
| |
85 | 84 |
| |
| |||
91 | 90 |
| |
92 | 91 |
| |
93 | 92 |
| |
94 |
| - | |
| 93 | + | |
| 94 | + | |
95 | 95 |
| |
96 | 96 |
| |
97 | 97 |
| |
98 | 98 |
| |
99 | 99 |
| |
100 | 100 |
| |
101 |
| - | |
| 101 | + | |
| 102 | + | |
102 | 103 |
| |
103 | 104 |
| |
104 | 105 |
| |
| |||
171 | 172 |
| |
172 | 173 |
| |
173 | 174 |
| |
174 |
| - | |
175 |
| - | |
176 |
| - | |
177 |
| - | |
178 |
| - | |
179 |
| - | |
180 |
| - | |
181 |
| - | |
182 |
| - | |
183 |
| - | |
184 | 175 |
| |
185 | 176 |
| |
186 | 177 |
| |
| |||
209 | 200 |
| |
210 | 201 |
| |
211 | 202 |
| |
212 |
| - | |
213 |
| - | |
214 |
| - | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
215 | 207 |
| |
216 | 208 |
| |
217 | 209 |
| |
| |||
225 | 217 |
| |
226 | 218 |
| |
227 | 219 |
| |
228 |
| - | |
229 |
| - | |
| 220 | + | |
| 221 | + | |
230 | 222 |
| |
231 | 223 |
| |
232 | 224 |
| |
| |||
235 | 227 |
| |
236 | 228 |
| |
237 | 229 |
| |
238 |
| - | |
239 |
| - | |
240 |
| - | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
241 | 233 |
| |
242 | 234 |
| |
243 | 235 |
| |
| |||
255 | 247 |
| |
256 | 248 |
| |
257 | 249 |
| |
258 |
| - | |
259 |
| - | |
| 250 | + | |
260 | 251 |
| |
261 | 252 |
| |
262 | 253 |
| |
| |||
274 | 265 |
| |
275 | 266 |
| |
276 | 267 |
| |
277 |
| - | |
278 |
| - | |
| 268 | + | |
279 | 269 |
| |
280 | 270 |
| |
281 | 271 |
| |
| |||
291 | 281 |
| |
292 | 282 |
| |
293 | 283 |
| |
294 |
| - | |
295 | 284 |
| |
296 | 285 |
| |
297 |
| - | |
298 |
| - | |
299 |
| - | |
300 |
| - | |
301 |
| - | |
302 |
| - | |
303 |
| - | |
304 |
| - | |
305 |
| - | |
306 |
| - | |
307 |
| - | |
308 |
| - | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
309 | 293 |
| |
310 | 294 |
| |
311 | 295 |
| |
312 |
| - | |
313 | 296 |
| |
314 |
| - | |
315 |
| - | |
316 |
| - | |
317 |
| - | |
318 |
| - | |
319 |
| - | |
320 |
| - | |
321 |
| - | |
322 |
| - | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
323 | 302 |
| |
324 | 303 |
| |
325 | 304 |
| |
| |||
342 | 321 |
| |
343 | 322 |
| |
344 | 323 |
| |
345 |
| - | |
346 |
| - | |
347 |
| - | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
348 | 327 |
| |
349 | 328 |
| |
350 | 329 |
| |
| |||
355 | 334 |
| |
356 | 335 |
| |
357 | 336 |
| |
358 |
| - | |
| 337 | + | |
359 | 338 |
| |
360 | 339 |
| |
361 | 340 |
| |
362 | 341 |
| |
363 |
| - | |
| 342 | + | |
364 | 343 |
| |
365 | 344 |
| |
366 | 345 |
| |
|
Lines changed: 0 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
9 | 9 |
| |
10 | 10 |
| |
11 | 11 |
| |
12 |
| - | |
13 | 12 |
| |
14 | 13 |
| |
15 | 14 |
| |
|
Lines changed: 0 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
9 | 9 |
| |
10 | 10 |
| |
11 | 11 |
| |
12 |
| - | |
13 | 12 |
| |
14 | 13 |
| |
15 | 14 |
| |
|
Lines changed: 0 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
14 | 14 |
| |
15 | 15 |
| |
16 | 16 |
| |
17 |
| - | |
18 | 17 |
| |
19 | 18 |
| |
20 | 19 |
| |
|
Lines changed: 27 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + |
0 commit comments
Comments
(0)