summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xcontrib/pgxc_ctl/t/005_pgxc_ctl_minimal.pl1
-rwxr-xr-xcontrib/pgxc_ctl/t/010_pgxc_ctl.pl4
2 files changed, 3 insertions, 2 deletions
diff --git a/contrib/pgxc_ctl/t/005_pgxc_ctl_minimal.pl b/contrib/pgxc_ctl/t/005_pgxc_ctl_minimal.pl
index 217a02db5d..0f53a71370 100755
--- a/contrib/pgxc_ctl/t/005_pgxc_ctl_minimal.pl
+++ b/contrib/pgxc_ctl/t/005_pgxc_ctl_minimal.pl
@@ -6,6 +6,7 @@ use TestLib;
use Test::More tests => 6;
my $dataDirRoot="~/DATA/pgxl/nodes/";
+$ENV{'PGXC_CTL_HOME'} = '/tmp/pgxc_ctl';
my $PGXC_CTL_HOME=$ENV{'PGXC_CTL_HOME'};
#delete related dirs for cleanup
diff --git a/contrib/pgxc_ctl/t/010_pgxc_ctl.pl b/contrib/pgxc_ctl/t/010_pgxc_ctl.pl
index b2fcbd38aa..ed8b551152 100755
--- a/contrib/pgxc_ctl/t/010_pgxc_ctl.pl
+++ b/contrib/pgxc_ctl/t/010_pgxc_ctl.pl
@@ -6,6 +6,7 @@ use TestLib;
use Test::More tests => 6;
my $dataDirRoot="~/DATA/pgxl/nodes/";
+$ENV{'PGXC_CTL_HOME'} = '/tmp/pgxc_ctl';
my $PGXC_CTL_HOME=$ENV{'PGXC_CTL_HOME'};
#delete related dirs for cleanup
@@ -65,8 +66,7 @@ system_or_bail 'pgxc_ctl', 'monitor', 'all' ;
system_or_bail 'pgxc_ctl', 'add', 'gtm', 'slave', 'gtm_slave', "$GTM_HOST", '20101', "$dataDirRoot/gtm_slave" ;
-#this step may need to be done by pgxc_ctl internally
-#system_or_bail 'gtm_ctl', '-Z', 'gtm_standby', '-D', "$dataDirRoot/gtm_slave", "-l", "$dataDirRoot/gtm_slave_archlog.1", 'start' ;
+system_or_bail 'pgxc_ctl', 'start', 'gtm', 'slave' ;
system_or_bail 'pgxc_ctl', 'monitor', 'all' ;