f03b87e66a
This patch consists of two squashed patches: First patch copies in tox_install.sh from oslo libraries. The script removes ovsdbapp from upper-constraints.txt as we want to install code from the repository and not from pip. Second patch is squashed from abandoned Iff59bbf41d166a0918a217cb72a37c547c6506b9. Issue there was that code uses 'sudo' for running ovs-vsctl but the tests user is not member of sudoers. It sets the Manager prior to executing the tests. As ovsdbapp isn't supposed to depend on oslo, there is not guaranteed way running process with ovsdbapp code will have root privileges. Hence the Manager should be configured before application using ovsdbapp is started. Closes-bug: #1674937 Change-Id: I634ae2eeab7b68a81cb7208f0650705ac5a9a9ef
8 lines
278 B
Bash
Executable File
8 lines
278 B
Bash
Executable File
#!/bin/bash -xe
|
|
|
|
# This script is triggered by extra-test-setup macro from project-config
|
|
# repository.
|
|
|
|
# Set manager for native interface
|
|
sudo ovs-vsctl --timeout=10 --id=@manager -- create Manager target=\"ptcp:6640:127.0.0.1\" -- add Open_vSwitch . manager_options @manager
|