Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Various fixes after wait_idle/sleep remove #3385

Merged
merged 6 commits into from
Aug 4, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion products/opensuse/main.pm
Original file line number Diff line number Diff line change
Expand Up @@ -389,6 +389,7 @@ sub load_consoletests_minimal {
sub load_consoletests {
return unless consolestep_is_applicable();
loadtest "console/consoletest_setup";
loadtest "console/force_cron_run" if !is_jeos;
if (get_var("LOCK_PACKAGE")) {
loadtest "console/check_locked_package";
}
Expand All @@ -406,7 +407,6 @@ sub load_consoletests {
loadtest "console/xorg_vt";
}
loadtest "console/zypper_lr";
loadtest "console/force_cron_run" if !is_jeos;
loadtest 'console/enable_usb_repo' if check_var('USBBOOT', 1);
if (have_addn_repos) {
loadtest "console/zypper_ar";
Expand Down
2 changes: 1 addition & 1 deletion products/sle/main.pm
Original file line number Diff line number Diff line change
Expand Up @@ -720,6 +720,7 @@ sub load_consoletests {
loadtest "rt/kmp_modules";
}
loadtest "console/consoletest_setup";
loadtest "console/force_cron_run" unless is_jeos;
if (get_var("LOCK_PACKAGE")) {
loadtest "console/check_locked_package";
}
Expand All @@ -740,7 +741,6 @@ sub load_consoletests {
loadtest "console/xorg_vt";
}
loadtest "console/zypper_lr";
loadtest "console/force_cron_run" unless is_jeos;
loadtest 'console/enable_usb_repo' if check_var('USBBOOT', 1);
if (need_clear_repos()) {
loadtest "update/zypper_clear_repos";
Expand Down
8 changes: 6 additions & 2 deletions tests/console/force_cron_run.pm
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,12 @@

# Summary: Avoid suprises later and run the cron jobs explicitly
# Maintainer: Stephan Kulow <coolo@suse.de>
# Tags: bsc#1017461

use base "consoletest";
use strict;
use testapi;
use utils 'assert_screen_with_soft_timeout';

# check if sshd works
sub run {
Expand All @@ -21,13 +23,15 @@ sub run {
# show dmesg output in console during cron run
assert_script_run "dmesg -n 7";

my $before = time;
assert_script_run "bash -x /usr/lib/cron/run-crons", 1000;
record_soft_failure 'bsc#1017461 - long running btrfs cron jobs can make system unresponsive' if (time - $before) > 60;
sleep 3; # some head room for the load average to rise
script_run "top; echo TOP-DONE-\$? > /dev/$serialdev", 0;
# let the load settle
assert_screen 'top-load-decreased', 1000;
assert_screen_with_soft_timeout('top-load-decreased', soft_timeout => 30, bugref => 'bsc#1017461', timeout => 1000);
send_key 'q';
wait_serial 'TOP-DONE';
wait_serial 'TOP-DONE' || die 'top did not quit?';

# return dmesg output to normal
assert_script_run "dmesg -n 1";
Expand Down
4 changes: 2 additions & 2 deletions tests/installation/add_update_test_repo.pm
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,15 @@ sub run() {
while (defined(my $maintrepo = shift @repos)) {
next if $maintrepo =~ /^\s*$/;
assert_screen('addon-menu-active', 60);
send_key 'alt-u'; # specify url
wait_screen_change { send_key 'alt-u' }; # specify url
if (check_var('VERSION', '12') and check_var('VIDEOMODE', 'text')) {
send_key 'alt-x';
}
else {
send_key $cmd{next};
}
assert_screen 'addonurl-entry';
send_key 'alt-u'; # select URL field
send_key 'alt-u'; # select URL field
type_string $maintrepo;
advance_installer_window('addon-products');
# if more repos to come, add more
Expand Down
6 changes: 2 additions & 4 deletions tests/x11regressions/shotwell/shotwell_edit.pm
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
# Tags: tc#1503811


use base "x11regressiontest";
use base "x11regressiontest";
use strict;
use testapi;
Expand All @@ -39,10 +38,9 @@ sub run {
assert_screen 'shotwell-crop-picture';
send_key "shift-delete"; # Remove picture from library
assert_screen 'shotwell-remove-prompt';
send_key "alt-r";
wait_screen_change { send_key 'alt-r' };
send_key "esc";
wait_still_screen;
assert_screen 'shotwell-removed-picture';
assert_screen 'shotwell-removed-picture', 60;
send_key "ctrl-q"; # Quit shotwell

# Clean shotwell's library then remove the test pictures
Expand Down
7 changes: 4 additions & 3 deletions tests/x11regressions/tracker/tracker_search_in_nautilus.pm
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,10 @@ use testapi;
sub run {
x11_start_program("nautilus");
wait_screen_change { send_key 'ctrl-f' };
type_string "newfile";
send_key "ret";
assert_screen 'gedit-launched', 3; # should open file newfile
wait_screen_change { type_string 'newfile' };
save_screenshot;
send_key 'ret';
assert_screen 'gedit-launched'; # should open file newfile
wait_screen_change { send_key 'alt-f4' };
send_key "alt-f4";
}
Expand Down