forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit384f1ab
committed
Fix portability issues in new TAP tests of psql
The tests added byc0280bc andd9ddc50 in 001_basic.pl have introducedcommands calling directly psql, making them sensitive to theenvironment. One issue was that those commands forgot -X to not use alocal .psqlrc, causing all those tests to fail if psql cannot properlyparse this file.TAP tests should be designed so as they run in an isolated fashion,without any dependency on the environment where they are run. AsPostgresNode::psql gives already all the facilities those new testsneed, switch to that instead of calling plain psql commands whereinteractions with a backend are needed. The test is slightly refactoredto be able to check after the expected patterns of stdout and stderr,keeping the same amount of coverage as previously.Reported-by: Peter GeogheganDiscussion:https://postgr.es/m/CAH2-Wzn8ftvcDPwomn+y04JJzbT=TG7TN=QsmSEATUOW-ZuvQQ@mail.gmail.com1 parent40dfac4 commit384f1ab
1 file changed
+45
-7
lines changedLines changed: 45 additions & 7 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
15 | 15 |
| |
16 | 16 |
| |
17 | 17 |
| |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
18 | 53 |
| |
19 | 54 |
| |
20 | 55 |
| |
21 |
| - | |
| 56 | + | |
| 57 | + | |
22 | 58 |
| |
23 | 59 |
| |
24 | 60 |
| |
| |||
34 | 70 |
| |
35 | 71 |
| |
36 | 72 |
| |
37 |
| - | |
38 |
| - | |
39 |
| - | |
40 |
| - | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
41 | 76 |
| |
42 | 77 |
| |
43 |
| - | |
44 |
| - | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + |
0 commit comments
Comments
(0)