diff options
Diffstat (limited to 'src/software/test/test_software_identity_file_check.py')
-rw-r--r-- | src/software/test/test_software_identity_file_check.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/software/test/test_software_identity_file_check.py b/src/software/test/test_software_identity_file_check.py index bb2a933..c1fb77b 100644 --- a/src/software/test/test_software_identity_file_check.py +++ b/src/software/test/test_software_identity_file_check.py @@ -125,9 +125,8 @@ class TestSoftwareIdentityFileCheck(swbase.SwTestCase): for repo in self.repodb.values(): for pkg in repo.packages: to_uninstall.add(pkg.name) - to_uninstall = [p for p in to_uninstall if package.is_pkg_installed(p)] - if to_uninstall: - subprocess.call(['/usr/bin/rpm', '--quiet', '-e'] + to_uninstall) + to_uninstall = list(package.filter_installed_packages(to_uninstall)) + package.remove_pkgs(to_uninstall) def do_check_symlink(self, pkg, filepath, inst): """ |