Skip to content

Commit

Permalink
tests/lib: merge distro.sh into pkgdb.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
morphis committed May 22, 2017
1 parent 13815b8 commit e55eb41
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 13 deletions.
11 changes: 0 additions & 11 deletions tests/lib/distro.sh

This file was deleted.

11 changes: 11 additions & 0 deletions tests/lib/pkgdb.sh
Expand Up @@ -120,3 +120,14 @@ distro_clean_package_cache() {
;;
esac
}

# Specify necessary packages which need to be installed on a
# system to provide a basic build environment for snapd.
DISTRO_BUILD_DEPS=""
case "$SPREAD_SYSTEM" in
debian-*|ubuntu-*)
DISTRO_BUILD_DEPS="build-essential curl devscripts expect gdebi-core jq rng-tools git netcat-openbsd"
;;
*)
;;
esac
2 changes: 0 additions & 2 deletions tests/lib/prepare-project.sh
Expand Up @@ -122,8 +122,6 @@ if [[ "$SPREAD_SYSTEM" == ubuntu-14.04-* ]]; then
quiet apt-get install -y --force-yes apparmor libapparmor1 seccomp libseccomp2 systemd cgroup-lite util-linux
fi

. "$TESTSLIB/distro.sh"

distro_purge_package snapd || true
distro_install_package $DISTRO_BUILD_DEPS

Expand Down

0 comments on commit e55eb41

Please sign in to comment.