From e50b8b390ec09b05a8b7f58c5863deee6725d49d Mon Sep 17 00:00:00 2001 From: Doug Hellmann Date: Fri, 30 Jan 2015 12:15:19 -0500 Subject: [PATCH] Publish cross-test runner as part of oslotest Move the latest version of run_cross_test.sh from the incubator here to oslotest and rename it so we can publish it as a tool that comes with oslotest instead of syncing it into the other projects. Change-Id: I1aec3bda9e46b1667cfd7b68aa2d654327d1c8fb --- setup.cfg | 1 + ...un_cross_tests.sh => oslo_run_cross_tests} | 36 +++++++++++++++++-- 2 files changed, 34 insertions(+), 3 deletions(-) rename tools/{run_cross_tests.sh => oslo_run_cross_tests} (75%) 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 - <