Fix buildimage job

Job named "buildimage" fails with following error:

E: Package 'kpartx' has no installation candidate

So, execute "apt-get update" before required dependencies installation.
Also, do not install dependencies specified in 'test-requirements.txt'
as redundant.

Change-Id: Ic4beaa6be81eb50bafa1dd029722ec84288e6f20
Closes-Bug: #1537011
This commit is contained in:
vponomaryov 2016-01-22 16:01:16 +02:00
parent 2d3e436ab5
commit a07f17734e
2 changed files with 3 additions and 0 deletions

View File

@ -141,6 +141,7 @@ if need_required_packages; then
if [ -n "$DIB_UPDATE_REQUESTED" ]; then if [ -n "$DIB_UPDATE_REQUESTED" ]; then
case "$platform" in case "$platform" in
"ubuntu") "ubuntu")
sudo apt-get update
sudo apt-get install $package_list -y sudo apt-get install $package_list -y
;; ;;
"opensuse") "opensuse")

View File

@ -29,6 +29,8 @@ commands = {posargs}
[testenv:buildimage] [testenv:buildimage]
commands = manila-image-create commands = manila-image-create
deps =
-r{toxinidir}/requirements.txt
[flake8] [flake8]
show-source = true show-source = true