echo $repos
}
-# Good grief, handling background proceesses from shell is a pain.
+get_psql_cmd () {
+ perl -we '
+ use Osstest;
+ use Osstest::Executive;
+ use DBI;
+ csreadconfig();
+ print "psql",
+ " -d ", $dbh_tests->{pg_db},
+ " -h ", $dbh_tests->{pg_host},
+ " -p ", $dbh_tests->{pg_port},
+ " -U ", $dbh_tests->{pg_user},
+ " -v ON_ERROR_STOP=1\n"
+ or die $!;
+'
+}
+
+get_pgdump_cmd () {
+ perl -we '
+ use Osstest;
+ use Osstest::Executive;
+ use DBI;
+ csreadconfig();
+ print "pg_dump",
+ " -h ", $dbh_tests->{pg_host},
+ " -p ", $dbh_tests->{pg_port},
+ " -U ", $dbh_tests->{pg_user},
+ " ", $dbh_tests->{pg_db}, "\n"
+ or die $!;
+'
+}
+
+# Good grief, handling background processes from shell is a pain.
#
# For stupid historical reasons, background processes start with
# SIGINT (and QUIT) ignored (SuSv3 2.11). bash does not currently