]> git.sur5r.net Git - i3/i3/blobdiff - testcases/lib/i3test.pm.in
tests: use i3_config arg instead of precisely one launch_with_config
[i3/i3] / testcases / lib / i3test.pm.in
index 0f28a7a9f9e32b70b3acb864bcd01789520966c0..a9cfba37710ba897389a8d62491e695dc634c9e6 100644 (file)
@@ -126,7 +126,7 @@ END {
         exit_gracefully($i3_pid, "/tmp/nested-$ENV{DISPLAY}");
 
     } else {
-        kill(9, $i3_pid)
+        kill(-9, $i3_pid)
             or $tester->BAIL_OUT("could not kill i3");
 
         waitpid $i3_pid, 0;
@@ -138,8 +138,9 @@ sub import {
     my $pkg = caller;
 
     $i3_autostart = delete($args{i3_autostart}) // 1;
+    my $i3_config = delete($args{i3_config}) // '-default';
 
-    my $cv = launch_with_config('-default', dont_block => 1)
+    my $cv = launch_with_config($i3_config, dont_block => 1)
         if $i3_autostart;
 
     my $test_more_args = '';