forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitda44ff3
committed
Set readline-relevant ENV vars in interactive_psql(), not caller.
Commit664d757 pulled 010_tab_completion.pl's infrastructure forinvoking an interactive psql session out into a generally-useful testfunction, but it didn't move enough stuff. We need to set up variousenvironment variables that readline will look at, both to ensurestability of test results and to prevent test actions from clutteringthe calling user's ~/.psql_history. Expecting calling scripts toremember to do that is too failure-prone: the other existing caller001_password.pl did not do it. Hence, remove those initializationsteps from 010_tab_completion.pl and put them into interactive_psql().Since interactive_psql was already making a local ENV hash, this hasno effect on calling scripts.Discussion:https://postgr.es/m/794610.1703182896@sss.pgh.pa.us1 parent3e2e0d5 commitda44ff3
File tree
2 files changed
+32
-22
lines changed- src
- bin/psql/t
- test/perl/PostgreSQL/Test
2 files changed
+32
-22
lines changedLines changed: 6 additions & 20 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
46 | 46 |
| |
47 | 47 |
| |
48 | 48 |
| |
49 |
| - | |
50 |
| - | |
51 |
| - | |
52 |
| - | |
53 |
| - | |
54 |
| - | |
55 |
| - | |
56 |
| - | |
57 |
| - | |
58 |
| - | |
59 |
| - | |
60 |
| - | |
61 |
| - | |
62 |
| - | |
63 |
| - | |
64 |
| - | |
65 |
| - | |
66 |
| - | |
67 |
| - | |
68 | 49 |
| |
69 | 50 |
| |
70 | 51 |
| |
| |||
91 | 72 |
| |
92 | 73 |
| |
93 | 74 |
| |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
94 | 80 |
| |
95 |
| - | |
| 81 | + | |
96 | 82 |
| |
97 | 83 |
| |
98 | 84 |
| |
|
Lines changed: 26 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2128 | 2128 |
| |
2129 | 2129 |
| |
2130 | 2130 |
| |
2131 |
| - | |
2132 |
| - | |
2133 | 2131 |
| |
2134 | 2132 |
| |
2135 | 2133 |
| |
2136 | 2134 |
| |
2137 | 2135 |
| |
2138 | 2136 |
| |
| 2137 | + | |
| 2138 | + | |
| 2139 | + | |
| 2140 | + | |
| 2141 | + | |
2139 | 2142 |
| |
2140 | 2143 |
| |
2141 | 2144 |
| |
| |||
2148 | 2151 |
| |
2149 | 2152 |
| |
2150 | 2153 |
| |
| 2154 | + | |
| 2155 | + | |
| 2156 | + | |
| 2157 | + | |
| 2158 | + | |
| 2159 | + | |
| 2160 | + | |
| 2161 | + | |
| 2162 | + | |
| 2163 | + | |
| 2164 | + | |
| 2165 | + | |
| 2166 | + | |
| 2167 | + | |
| 2168 | + | |
| 2169 | + | |
| 2170 | + | |
| 2171 | + | |
| 2172 | + | |
| 2173 | + | |
| 2174 | + | |
2151 | 2175 |
| |
2152 | 2176 |
| |
2153 | 2177 |
| |
|
0 commit comments
Comments
(0)