Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
tests/main: use pkgdb function in more test cases #3455
Conversation
| @@ -29,8 +31,7 @@ execute: | | ||
| . "$TESTSLIB/pkgdb.sh" | ||
| echo "Ensure core is gone and we have ubuntu-core instead" | ||
| - dpkg --purge --force-depends snapd | ||
| - apt-get install -f -y |
zyga
Jun 9, 2017
Contributor
Hmm, I wonder what this thing is about, why did we apt-get install ... nothing here?
morphis
Jun 9, 2017
Contributor
apt-get install -f -y actually does dependency cleanup if you did a purge via dpkg --purge
| echo "Given openvswitch is installed" | ||
| - apt install -y --no-install-recommends openvswitch-switch |
morphis
Jun 9, 2017
Contributor
Good catch, I actually added to support for that to the distro_install_package command but looks like this was dropped during the rebase/master I did
morphis
Jun 9, 2017
Contributor
Fixed that. distro_install_package now accepts --no-install-recommends as argument.
Conan-Kudo
Jun 9, 2017
Contributor
It might be better to be more generic: --no-weak-deps, which for Debian could be --no-install-recommends. For openSUSE, it would be --no-recommends, and for Fedora, it'd be --setopt=install_weak_deps=False
added some commits
Jun 9, 2017
| ;; | ||
| fedora-*) | ||
| - dnf -q -y install -y "$DNF_FLAGS" $package_name | ||
| + dnf -q -y install "$DNF_FLAGS" -y $package_name |
Conan-Kudo
Jun 12, 2017
Contributor
Why are you doing -y twice? It's already being used as a global flag...
morphis
Jun 12, 2017
Contributor
You're faster than me, already about to push another change to fix that.
| ;; | ||
| opensuse-*) | ||
| - zypper -q install -y "$ZYPPER_FLAGS" $package_name | ||
| + zypper -q install "$ZYPPER_FLAGS" $package_name |
codecov-io
commented
Jun 12, 2017
•
Codecov Report
@@ Coverage Diff @@
## master #3455 +/- ##
==========================================
+ Coverage 77.15% 77.18% +0.02%
==========================================
Files 373 375 +2
Lines 25793 25837 +44
==========================================
+ Hits 19901 19941 +40
- Misses 4134 4136 +2
- Partials 1758 1760 +2
Continue to review full report at Codecov.
|
|
There's an issue with the management of |
|
@fgimenez Thanks, yeah I saw that already. Has something to do with the quoting of APT_FLAGS, not yet sure what it is. |
morphis commentedJun 9, 2017
No description provided.