diff --git a/bin/tests/system/start.pl b/bin/tests/system/start.pl index 32de4e7c89..1bef72fa7d 100644 --- a/bin/tests/system/start.pl +++ b/bin/tests/system/start.pl @@ -15,7 +15,7 @@ # OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR # PERFORMANCE OF THIS SOFTWARE. -# $Id: start.pl,v 1.13.396.8 2011/10/10 18:53:48 smann Exp $ +# $Id: start.pl,v 1.13.396.9 2011/10/10 19:29:40 smann Exp $ # Framework for starting test servers. # Based on the type of server specified, check for port availability, remove @@ -132,7 +132,8 @@ sub start_server { my $cleanup_files; my $command; my $pid_file; - my $args_file = getcwd() . "/" . $test . "/" . $server . "/" . "named.args"; + my $cwd = getcwd(); + my $args_file = $cwd . "/" . $test . "/" . $server . "/" . "named.args"; if ($server =~ /^ns/) { $cleanup_files = "{*.jnl,*.bk,*.st,named.run}"; @@ -225,6 +226,9 @@ sub start_server { } sleep 1; } + + # go back to the top level directory + chdir $cwd; } sub verify_server {