diff --git a/setup.cfg b/setup.cfg index 02a781e..fcaa250 100644 --- a/setup.cfg +++ b/setup.cfg @@ -24,6 +24,7 @@ packages = oslotest scripts = tools/oslo_debug_helper + tools/oslo_run_cross_tests [global] setup-hooks = diff --git a/tools/run_cross_tests.sh b/tools/oslo_run_cross_tests similarity index 75% rename from tools/run_cross_tests.sh rename to tools/oslo_run_cross_tests index fb21e65..f5e400e 100755 --- a/tools/run_cross_tests.sh +++ b/tools/oslo_run_cross_tests @@ -1,12 +1,37 @@ #!/bin/bash # # Run cross-project tests +# +# Usage: +# +# oslo_run_cross_tests project_dir venv # Fail the build if any command fails set -e project_dir="$1" -venv="$2" +shift +venv="$1" +shift +posargs="$*" + +if [ -z "$project_dir" -o -z "$venv" ] +then + cat - <