Skip to content

Commit

Permalink
Skip 2nd&3rd runs when selecting all atterns in sle15
Browse files Browse the repository at this point in the history
  • Loading branch information
jknphy committed Mar 16, 2018
1 parent dd47648 commit 79346e8
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions tests/installation/select_patterns_and_packages.pm
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
use base "y2logsstep";
use strict;
use testapi;
use version_utils 'is_sle';

my $secondrun = 0; # bsc#1029660

Expand Down Expand Up @@ -204,12 +205,17 @@ sub run {
}
}
$self->package_action;
$secondrun++;
$self->gotopatterns;
$self->package_action;
$secondrun--;
$self->gotopatterns;
$self->package_action('unblock');
if (is_sle('15+') and check_var('PATTERNS', 'all')) {
record_soft_failure "bsc#1084064 - Cloud patterns conflicts"; # skip second & third runs
}
else {
$secondrun++;
$self->gotopatterns;
$self->package_action;
$secondrun--;
$self->gotopatterns;
$self->package_action('unblock');
}
}

1;
Expand Down

0 comments on commit 79346e8

Please sign in to comment.