Skip to content

Commit

Permalink
Merge pull request #96 from os-autoinst/wheel_launcher_drop_x11_start…
Browse files Browse the repository at this point in the history
…_program

Drop x11_start_program from susedistribution
  • Loading branch information
okurz committed Aug 3, 2022
2 parents 9053fd5 + 5471a94 commit e9e97a4
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions lib/susedistribution.pm
Original file line number Diff line number Diff line change
Expand Up @@ -5,25 +5,4 @@ use base 'distribution';

use testapi qw(send_key assert_screen check_screen save_screenshot type_string mouse_hide);

sub x11_start_program {
my ($self, $program, $timeout, $options) = @_;
send_key 'alt-f2';
mouse_hide(1);
assert_screen('desktop-runner', $timeout);
type_string $program;
if ($options->{terminal}) {
wait_screen_change { send_key 'alt-t' };
}
save_screenshot;
send_key 'ret';
# make sure desktop runner executed and closed when have had valid value
# exec x11_start_program( $program, $timeout, { valid => 1 } );
if ($options->{valid}) {
foreach my $i (1 .. 3) {
last unless check_screen 'desktop-runner-border', 2;
send_key 'ret';
}
}
}

1;

0 comments on commit e9e97a4

Please sign in to comment.