diff --git a/tools/migrate_from_tempest.sh b/tools/migrate_from_tempest.sh index 7719362..23e47d2 100755 --- a/tools/migrate_from_tempest.sh +++ b/tools/migrate_from_tempest.sh @@ -16,7 +16,8 @@ function usage { echo "Usage: $0 [OPTION] file1 file2" echo "Migrate files from tempest" echo "" - echo "-o, --output_dir Specify an directory relative to the repo root to move the migrated files into." + echo "-o, --output_dir Specify a directory relative to the repo root to move the migrated files into." + echo "-u, --tempest_git_url Specify the repo to clone tempest from for the migration." } set -e @@ -27,12 +28,13 @@ while [ $# -gt 0 ]; do case "$1" in -h|--help) usage; exit;; -o|--output_dir) output_dir="$2"; shift;; + -u|--tempest_git_url) tempest_git_url="$2"; shift;; *) files="$files $1";; esac shift done -TEMPEST_GIT_URL=git://git.openstack.org/openstack/tempest +TEMPEST_GIT_URL=${tempest_git_url:-git://git.openstack.org/openstack/tempest} tmpdir=$(mktemp -d -t tempest-migrate.XXXX) tempest_lib_dir=$(dirname "$0")