Skip to content

Commit

Permalink
Make pidgeon cleanup more robust
Browse files Browse the repository at this point in the history
-use zypper to remove and check package
-use grep instead of needle
  • Loading branch information
dzedro committed May 30, 2020
1 parent 37cfd6e commit 4ae7880
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions tests/x11/pidgin/clean_pidgin.pm
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# SUSE's openQA tests
#
# Copyright © 2009-2013 Bernhard M. Wiedemann
# Copyright © 2012-2019 SUSE LLC
# Copyright © 2012-2020 SUSE LLC
#
# Copying and distribution of this file, with or without modification,
# are permitted in any medium without royalty provided the copyright
Expand All @@ -17,17 +17,14 @@ use base "x11test";
use strict;
use warnings;
use testapi;
use utils 'clear_console';

sub remove_pkg {
my @packages = qw(pidgin);
x11_start_program('xterm');

# Remove packages
assert_script_sudo "rpm -e @packages";
clear_console;
type_string "rpm -qa @packages\n";
assert_screen "pidgin-pkg-removed"; #make sure pkgs removed.
assert_script_sudo "zypper -n rm @packages";
assert_script_run "zypper --no-refresh if @packages|grep 'not installed'";
type_string "exit\n";
}

Expand Down

0 comments on commit 4ae7880

Please sign in to comment.