tests: replace the flat list of contexts with a hash

This way we can return more values without breaking callers.
This commit is contained in:
Graham Christensen
2021-02-25 19:26:38 -05:00
committed by Cole Helbling
parent 26cfe624d5
commit f08d0be1bd
5 changed files with 8 additions and 5 deletions

View File

@ -62,7 +62,10 @@ sub test_init {
);
$ENV{'HYDRA_DBI'} = $pgsql->dsn;
system("hydra-init") == 0 or die;
return ($dir, $pgsql);
return (
tmpdir => $dir,
db => $pgsql
);
}
sub captureStdoutStderr {