Skip to content

Commit

Permalink
Confirm autoyast creation is removed from installation overview
Browse files Browse the repository at this point in the history
Resolves poo#11442
  • Loading branch information
kravciak committed Jul 18, 2016
1 parent db2fb60 commit 4103021
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 0 deletions.
3 changes: 3 additions & 0 deletions products/sle/main.pm
Original file line number Diff line number Diff line change
Expand Up @@ -641,6 +641,9 @@ sub load_extra_test () {
if (!get_var("OFW") && !is_jeos()) {
loadtest "console/aplay.pm";
}
if (get_var("SP2ORLATER")) {
loadtest "console/autoyast_removed.pm";
}
if (get_var("FILESYSTEM", "btrfs") eq "btrfs") {
loadtest "console/btrfs_autocompletion.pm";
}
Expand Down
21 changes: 21 additions & 0 deletions tests/console/autoyast_removed.pm
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# SUSE's openQA tests
#
# Copyright © 2016 SUSE LLC
#
# Copying and distribution of this file, with or without modification,
# are permitted in any medium without royalty provided the copyright
# notice and this notice are preserved. This file is offered as-is,
# without any warranty.

use base "consoletest";
use strict;
use testapi;

sub run() {
select_console("root-console");
# Check autoyast has been removed in SP2 (fate#317970)
assert_script_run("[ ! -f /root/autoinst.xml ]");
}

1;
# vim: set sw=4 et:
14 changes: 14 additions & 0 deletions tests/installation/installation_overview.pm
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,20 @@ sub run() {
# preserve it for the video
wait_idle 10;

# Check autoyast has been removed in SP2 (fate#317970)
if (get_var("SP2ORLATER")) {
if (check_var('VIDEOMODE', 'text')) {
send_key 'alt-l';
send_key 'ret';
send_key 'tab';
}
else {
send_key_until_needlematch 'packages-section-selected', 'tab';
}
send_key 'end';
assert_screen 'autoyast_removed';
}

# check for dependency issues, if found, drill down to software selection, take a screenshot, then die
if (check_screen("inst-overview-dep-warning", 1)) {
record_soft_failure 'dependency warning';
Expand Down

0 comments on commit 4103021

Please sign in to comment.