mirror of
https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git
synced 2024-11-16 03:33:08 +00:00
e1ec1997af
Summary: the main thing this does is try and type slower in X - this should cover nearly everywhere we type anything in X, and make it type slower. We also add a bit more safety checking to some old tests which didn't have it (mainly _do_install_and_reboot) - wait_still_screen after typing to make sure all the keypresses were registered before continuing. This is an attempt to mitigate the problems we've seen where the wrong text gets typed into the wrong places and the tests break. This branch is live on staging atm. It still has *some* issues, but I do think it's an improvement. Test Plan: run the tests (probably several times), compare to runs without the change, see if it's better or worse... Reviewers: jskladan, garretraziel Reviewed By: garretraziel Subscribers: tflink Differential Revision: https://phab.qadevel.cloud.fedoraproject.org/D993
47 lines
1.2 KiB
Perl
47 lines
1.2 KiB
Perl
use base "anacondatest";
|
|
use strict;
|
|
use testapi;
|
|
use main_common;
|
|
|
|
sub run {
|
|
my $self = shift;
|
|
# Anaconda hub
|
|
# Go to INSTALLATION DESTINATION and ensure one disk is selected.
|
|
$self->select_disks();
|
|
|
|
# check "encrypt data" checkbox
|
|
assert_and_click "anaconda_install_destination_encrypt_data";
|
|
assert_and_click "anaconda_spoke_done";
|
|
|
|
# type password for disk encryption
|
|
wait_idle 5;
|
|
if (get_var("SWITCHED_LAYOUT")) {
|
|
$self->switch_layout("us");
|
|
}
|
|
type_safely get_var("ENCRYPT_PASSWORD");
|
|
wait_screen_change { send_key "tab"; };
|
|
type_safely get_var("ENCRYPT_PASSWORD");
|
|
if (get_var("SWITCHED_LAYOUT")) {
|
|
# work around RHBZ #1333984
|
|
$self->switch_layout("native");
|
|
}
|
|
|
|
assert_and_click "anaconda_install_destination_save_passphrase";
|
|
|
|
# Anaconda hub
|
|
assert_screen "anaconda_main_hub", 300; #
|
|
|
|
}
|
|
|
|
sub test_flags {
|
|
# without anything - rollback to 'lastgood' snapshot if failed
|
|
# 'fatal' - whole test suite is in danger if this fails
|
|
# 'milestone' - after this test succeeds, update 'lastgood'
|
|
# 'important' - if this fails, set the overall state to 'fail'
|
|
return { fatal => 1 };
|
|
}
|
|
|
|
1;
|
|
|
|
# vim: set sw=4 et:
|