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
This commit is contained in:
parent
aeec382d24
commit
2d75f5fc9e
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user