From 2d75f5fc9e0cf1b7d23bd9eef48c744aa09f44ef Mon Sep 17 00:00:00 2001 From: fumihiko kakuma Date: Mon, 24 Apr 2017 19:57:51 +0900 Subject: [PATCH] Add sudo permission to tempest user in senario test gate_hook.sh adds sudo to group list of tempest user to use sudo in scenario test. But NOPASSWD tag to sudo group was removed from sudoers Change-Id: I21f2909851b6cf64569f5828225b3fd4b8f275d5 --- neutron_dynamic_routing/tests/contrib/gate_hook.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/neutron_dynamic_routing/tests/contrib/gate_hook.sh b/neutron_dynamic_routing/tests/contrib/gate_hook.sh index fab03307..1db1e1f4 100644 --- a/neutron_dynamic_routing/tests/contrib/gate_hook.sh +++ b/neutron_dynamic_routing/tests/contrib/gate_hook.sh @@ -76,7 +76,7 @@ function configure_docker_test_env { sudo pip install -c https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt ryu fi RYU_PATH=`pip show ryu | grep Location | cut -d' ' -f2`/ryu - sudo usermod -aG sudo tempest + sudo bash -c 'echo "tempest ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers' bash $RYU_PATH/tests/integrated/common/install_docker_test_pkg.sh --sudo-pip }