Skip to content

Commit

Permalink
tests/libs: add distro_auto_remove_packages function
Browse files Browse the repository at this point in the history
  • Loading branch information
morphis committed May 19, 2017
1 parent 4b152b2 commit 8a1aef8
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tests/lib/pkgdb.sh
Original file line number Diff line number Diff line change
Expand Up @@ -120,3 +120,15 @@ distro_clean_package_cache() {
;;
esac
}

distro_auto_remove_packages() {
case "$SPREAD_SYSTEM" in
ubuntu-*|debian-*)
quiet apt-get -y autoremove
;;
*)
echo "ERROR: Unsupported distribution '$SPREAD_SYSTEM'"
exit 1
;;
esac
}

0 comments on commit 8a1aef8

Please sign in to comment.