tests: use i3_config arg instead of precisely one launch_with_config
This way, tests are shorter, and i3test’s invocation of launch_with_config parallelizes work better, using dont_block => 1.
This commit is contained in:
@ -17,17 +17,13 @@
|
||||
# Verifies that "move container to output" works correctly when
|
||||
# used with command criteria.
|
||||
# Bug still in: 4.10.4-349-gee5db87
|
||||
use i3test i3_autostart => 0;
|
||||
|
||||
my $config = <<EOT;
|
||||
use i3test i3_config => <<EOT;
|
||||
# i3 config file (v4)
|
||||
font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1
|
||||
|
||||
fake-outputs 800x600+0+0,800x600+800+0,800x600+0+600,800x600+800+600
|
||||
EOT
|
||||
|
||||
my $pid = launch_with_config($config);
|
||||
|
||||
my $ws_top_left = fresh_workspace(output => 0);
|
||||
my $ws_top_right = fresh_workspace(output => 1);
|
||||
my $ws_bottom_left = fresh_workspace(output => 2);
|
||||
@ -45,6 +41,4 @@ is_num_children($ws_top_right, 1, 'one container on the upper right workspace');
|
||||
is_num_children($ws_bottom_left, 0, 'no containers on the lower left workspace');
|
||||
is_num_children($ws_bottom_right, 1, 'one container on the lower right workspace');
|
||||
|
||||
exit_gracefully($pid);
|
||||
|
||||
done_testing;
|
||||
|
Reference in New Issue
Block a user