Re: Making src/test/ssl more robust
От | Heikki Linnakangas |
---|---|
Тема | Re: Making src/test/ssl more robust |
Дата | |
Msg-id | 5526CE1F.4080904@iki.fi обсуждение исходный текст |
Ответ на | Re: Making src/test/ssl more robust (Michael Paquier <michael.paquier@gmail.com>) |
Ответы |
Re: Making src/test/ssl more robust
|
Список | pgsql-hackers |
On 04/09/2015 10:06 AM, Michael Paquier wrote: > On Wed, Apr 8, 2015 at 9:57 PM, Michael Paquier > <michael.paquier@gmail.com> wrote: >> I noticed two things while looking at the SSL test suite: >> 1) When running the tests, some logs are generated in client-log, but >> this log file has no entry in .gitignore... A patch is attached. >> 2) cp is used with a wildcard and system_or_bail in ServerSetup.pm: >> system_or_bail "cp ssl/server-*.crt '$tempdir'/pgdata"; >> system_or_bail "cp ssl/server-*.key '$tempdir'/pgdata"; >> system_or_bail "chmod 0600 '$tempdir'/pgdata/server-*.key"; >> system_or_bail "cp ssl/root+client_ca.crt '$tempdir'/pgdata"; >> system_or_bail "cp ssl/root+client.crl '$tempdir'/pgdata"; >> This does not look very portable to me. Wouldn't it be better to use >> glob to get a list of the files and then copy each matching entry? >> Thoughts? > > Here are patches on top of those words. Instead of cp, glob is used > with File::Copy and File::Basename to make the code more portable, > something useful for Windows for example where cp is not directly > available. Pushed, thanks! - Heikki
В списке pgsql-hackers по дате отправления: