1
0
mirror of https://github.com/postgres/postgres.git synced 2025-08-08 06:02:22 +03:00

PostgresNode: Add names to nodes

This makes the log files easier to follow when investigating a test
failure.

Author: Michael Paquier
Review: Noah Misch
This commit is contained in:
Alvaro Herrera
2016-01-20 14:13:11 -03:00
parent 216d568432
commit c8642d909f
20 changed files with 48 additions and 37 deletions

View File

@@ -11,7 +11,7 @@ my $tempdir_short = TestLib::tempdir_short;
command_exit_is([ 'pg_ctl', 'status', '-D', "$tempdir/nonexistent" ],
4, 'pg_ctl status with nonexistent directory');
my $node = get_new_node();
my $node = get_new_node('main');
$node->init;
command_exit_is([ 'pg_ctl', 'status', '-D', $node->data_dir ],