> On 3 Sep 2022, at 10:27, Dong Wook Lee <sh95...@gmail.com> wrote:
> I write a tiny patch about vacuumlo to improve test coverage. If we are paying for setting up a cluster we might as well test more scenarios than just the one. Perhaps some other low-hanging fruit like calling vacuumlo on a non-existing databsase, on one where no LO have been made etc? One thing about the patch: +IPC::Run::run [ 'vacuumlo', '-v', '-n', '-p', $port, 'postgres' ], '>', \$stdout; This should use run_command() which provides facilities for running commands and capturing STDOUT. With this the test can be rewritten something like: my ($out, $err) = run_command(['vacuumlo', .. ]); like($out, ..); run_command() is defined in PostgreSQL::Test::Utils. -- Daniel Gustafsson https://vmware.com/