Skip to content

Commit

Permalink
Fix mutt test by installing packages unconditionally
Browse files Browse the repository at this point in the history
Mutt is not installed by default on openSUSE, make sure to install it
before the test [poo#89260](https://progress.opensuse.org/issues/89260).
  • Loading branch information
baierjan committed Mar 4, 2021
1 parent 1394395 commit 90b32d3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/console/mutt.pm
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,15 @@ use base 'consoletest';
use strict;
use warnings;
use testapi;
use version_utils qw(is_sle is_tumbleweed is_jeos);
use version_utils qw(is_sle);
use utils;

sub run {
my $self = shift;
$self->select_serial_terminal;

zypper_call("in mutt", exitcode => [0, 102, 103]) if (is_tumbleweed || is_jeos || get_var('PUBLIC_CLOUD'));
zypper_call("in wget", exitcode => [0, 102, 103]) if is_jeos;
zypper_call("in mutt", exitcode => [0, 102, 103]);
zypper_call("in wget", exitcode => [0, 102, 103]);

# Mutt is Mutt (bsc#1094717) and has build in support for IMAP and SMTP
validate_script_output 'mutt -v', sub { m/\+USE_IMAP/ && m/\+USE_SMTP/ && not m/NeoMutt/ };
Expand Down

0 comments on commit 90b32d3

Please sign in to comment.