diff options
| author | Marcin Juszkiewicz <marcin.juszkiewicz@linaro.org> | 2017-05-04 15:54:21 +0200 |
|---|---|---|
| committer | Marcin Juszkiewicz <marcin.juszkiewicz@linaro.org> | 2017-05-08 14:31:33 +0200 |
| commit | bfc72492e7a10221237261e276f8b8d1fefa70e3 (patch) | |
| tree | 6e594709a230fbbc59b96abf8706d5382e79e3e4 /kolla/tests | |
| parent | 9751b32a7b37e12fab19a6a99c98c4c58f348a6d (diff) | |
| download | kolla-bfc72492e7a10221237261e276f8b8d1fefa70e3.tar.gz kolla-bfc72492e7a10221237261e276f8b8d1fefa70e3.zip | |
always update APT lists when install packages
Normally we update APT lists when 'base' image is built. But when some
time pass those lists get out-of-date and images can not be built.
CentOS based images handle that without issues because YUM updates
repository data whenever they are out-of-date.
Change-Id: I5ba5b2067566639b399329b878027d4513567f71
Diffstat (limited to 'kolla/tests')
| -rw-r--r-- | kolla/tests/test_methods.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kolla/tests/test_methods.py b/kolla/tests/test_methods.py index dce013d67..1fb5dfa19 100644 --- a/kolla/tests/test_methods.py +++ b/kolla/tests/test_methods.py @@ -19,5 +19,5 @@ class MethodsTest(base.TestCase): def test_debian_package_install(self): packages = ['https://packages.debian.org/package1.deb', 'package2.deb'] result = methods.debian_package_install(packages) - expectCmd = 'apt-get -y install --no-install-recommends package2.deb ' - self.assertEqual(expectCmd, result.split("&&")[0]) + expectCmd = 'apt-get -y install --no-install-recommends package2.deb' + self.assertEqual(expectCmd, result.split("&&")[1].strip()) |
