Don't insert newline at end of config with launch_with_config
This commit is contained in:
parent
44e4ad52f6
commit
fd7319683d
|
@ -835,8 +835,11 @@ sub launch_with_config {
|
||||||
|
|
||||||
my ($fh, $tmpfile) = tempfile("i3-cfg-for-$ENV{TESTNAME}-XXXXX", UNLINK => 1);
|
my ($fh, $tmpfile) = tempfile("i3-cfg-for-$ENV{TESTNAME}-XXXXX", UNLINK => 1);
|
||||||
|
|
||||||
|
say $fh "ipc-socket $tmp_socket_path"
|
||||||
|
unless $args{dont_add_socket_path};
|
||||||
|
|
||||||
if ($config ne '-default') {
|
if ($config ne '-default') {
|
||||||
say $fh $config;
|
print $fh $config;
|
||||||
} else {
|
} else {
|
||||||
open(my $conf_fh, '<', '@abs_top_srcdir@/testcases/i3-test.config')
|
open(my $conf_fh, '<', '@abs_top_srcdir@/testcases/i3-test.config')
|
||||||
or $tester->BAIL_OUT("could not open default config: $!");
|
or $tester->BAIL_OUT("could not open default config: $!");
|
||||||
|
@ -844,9 +847,6 @@ sub launch_with_config {
|
||||||
say $fh scalar <$conf_fh>;
|
say $fh scalar <$conf_fh>;
|
||||||
}
|
}
|
||||||
|
|
||||||
say $fh "ipc-socket $tmp_socket_path"
|
|
||||||
unless $args{dont_add_socket_path};
|
|
||||||
|
|
||||||
close($fh);
|
close($fh);
|
||||||
|
|
||||||
my $cv = AnyEvent->condvar;
|
my $cv = AnyEvent->condvar;
|
||||||
|
|
Loading…
Reference in New Issue