We want to be able to run cinderlib functional tests on Cinder gates, so this patch adds a playbook and a tool to convert from Cinder's config file to the YAML required by our functional tests. The cinder-gate-run playbook uses cinderlib_ignore_errors variable to define whether the playbook should fail on errors or should they just be ignored. The playbook stores the test run results on the common logs directory so they are automatically saved by the Cinder gate jobs.
9 lines
302 B
Bash
Executable File
9 lines
302 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# Script to ensure that calling commands added in the virtualenv with sudo will
|
|
# be able to find them during the functional tests, ie: cinder-rtstool
|
|
|
|
params=()
|
|
for arg in "$@"; do params+=("\"$arg\""); done
|
|
params="${params[@]}"
|
|
sudo -E --preserve-env=PATH /bin/bash -c "$params"
|