1
0
mirror of https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git synced 2024-11-24 14:53:09 +00:00

base class for logging

This commit is contained in:
Garret Raziel 2015-02-13 16:36:35 +01:00 committed by Josef Skladanka
parent 235377708f
commit e819d7f9bd
10 changed files with 17 additions and 14 deletions

View File

@ -7,7 +7,7 @@ sub post_fail_hook {
my $self = shift; my $self = shift;
send_key "ctrl-alt-f2"; send_key "ctrl-alt-f2";
if (check_screen "anaconda_console", 10) { if (check_screen "anaconda_console", 10) {
upload_logs "/tmp/X.log"; upload_logs "/tmp/X.log"; # TODO: it can't type "X"
upload_logs "/tmp/anaconda.log"; upload_logs "/tmp/anaconda.log";
upload_logs "/tmp/packaging.log"; upload_logs "/tmp/packaging.log";
upload_logs "/tmp/storage.log"; upload_logs "/tmp/storage.log";

View File

@ -1,4 +1,4 @@
use base "basetest"; use base "anacondalog";
use strict; use strict;
use testapi; use testapi;

View File

@ -10,24 +10,27 @@ sub run {
assert_and_click "anaconda_main_hub_begin_installation"; assert_and_click "anaconda_main_hub_begin_installation";
# Set root password # Set root password
my $root_password = get_var("ROOT_PASSWORD") || "weakpassword";
assert_and_click "anaconda_install_root_password"; assert_and_click "anaconda_install_root_password";
type_string "weakpassword"; type_string $root_password;
send_key "tab"; send_key "tab";
type_string "weakpassword"; type_string $root_password;
assert_and_click "anaconda_spoke_done"; assert_and_click "anaconda_spoke_done";
# weak password - click "done" once again" # weak password - click "done" once again"
#assert_and_click "anaconda_spoke_done"; #assert_and_click "anaconda_spoke_done";
# Set user details # Set user details
my $user_login = get_var("USER_LOGIN") || "test";
my $user_password = get_var("USER_PASSWORD") || "weakpassword";
assert_and_click "anaconda_install_user_creation"; assert_and_click "anaconda_install_user_creation";
type_string "test"; type_string $user_login;
send_key "tab"; send_key "tab";
send_key "tab"; send_key "tab";
send_key "tab"; send_key "tab";
send_key "tab"; send_key "tab";
type_string "weakpassword"; type_string $user_password;
send_key "tab"; send_key "tab";
type_string "weakpassword"; type_string $user_password;
assert_and_click "anaconda_install_user_creation_make_admin"; assert_and_click "anaconda_install_user_creation_make_admin";
assert_and_click "anaconda_spoke_done"; assert_and_click "anaconda_spoke_done";
# weak password - click "done" once again" # weak password - click "done" once again"

View File

@ -1,4 +1,4 @@
use base "basetest"; use base "anacondalog";
use strict; use strict;
use testapi; use testapi;

View File

@ -1,4 +1,4 @@
use base "basetest"; use base "anacondalog";
use strict; use strict;
use testapi; use testapi;

View File

@ -1,4 +1,4 @@
use base "basetest"; use base "anacondalog";
use strict; use strict;
use testapi; use testapi;

View File

@ -1,4 +1,4 @@
use base "basetest"; use base "anacondalog";
use strict; use strict;
use testapi; use testapi;

View File

@ -1,4 +1,4 @@
use base "basetest"; use base "anacondalog";
use strict; use strict;
use testapi; use testapi;

View File

@ -1,4 +1,4 @@
use base "basetest"; use base "anacondalog";
use strict; use strict;
use testapi; use testapi;

View File

@ -1,4 +1,4 @@
use base "basetest"; use base "anacondalog";
use strict; use strict;
use testapi; use testapi;