From 1084ff6d5acab882de1a361fc4144ec0630f520d Mon Sep 17 00:00:00 2001 From: Dmitriy Rabotjagov Date: Fri, 14 Jun 2019 16:56:13 +0300 Subject: [PATCH] Fix non-interactive mode for apt Since sudo was laucnhed after setting DEBIAN_FRONTEND variable, noninteractive wasn't working correctly during bindep installation. Also patch includes temporary fix which is generally adressed in [1] This is implemented to resolve cross-dependency and will be rolled back once general fix will land. [1] https://review.opendev.org/665244/ Change-Id: I44c6aa7a0266285ca67edca70cdc4450c64671d9 --- run_tests_common.sh | 4 ++-- tests/group_vars/all_containers.yml | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/run_tests_common.sh b/run_tests_common.sh index 1421feb8..2fac3c93 100755 --- a/run_tests_common.sh +++ b/run_tests_common.sh @@ -103,8 +103,8 @@ if [[ ${#BINDEP_PKGS} > 0 ]]; then ;; ubuntu|debian) sudo apt-get update - DEBIAN_FRONTEND=noninteractive \ - sudo apt-get -q --option "Dpkg::Options::=--force-confold" \ + sudo DEBIAN_FRONTEND=noninteractive \ + apt-get -q --option "Dpkg::Options::=--force-confold" \ --assume-yes install ${BINDEP_PKGS} ;; gentoo) diff --git a/tests/group_vars/all_containers.yml b/tests/group_vars/all_containers.yml index 802a50f4..6974e90e 100644 --- a/tests/group_vars/all_containers.yml +++ b/tests/group_vars/all_containers.yml @@ -23,3 +23,4 @@ container_networks: physical_host: localhost properties: service_name: "{{ inventory_hostname }}" +tempest_install_method: source