diff options
Diffstat (limited to 'gate/live_migration/hooks/utils.sh')
-rwxr-xr-x | gate/live_migration/hooks/utils.sh | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/gate/live_migration/hooks/utils.sh b/gate/live_migration/hooks/utils.sh deleted file mode 100755 index e494ae03f8..0000000000 --- a/gate/live_migration/hooks/utils.sh +++ /dev/null @@ -1,21 +0,0 @@ -#!/bin/bash - -function run_tempest { - local message=$1 - local tempest_regex=$2 - - # NOTE(gmann): Set upper constraint for Tempest run so that it matches - # with what devstack is using and does not recreate the tempest virtual - # env. - TEMPEST_VENV_UPPER_CONSTRAINTS=$(set +o xtrace && - source $BASE/new/devstack/stackrc && - echo $TEMPEST_VENV_UPPER_CONSTRAINTS) - export UPPER_CONSTRAINTS_FILE=$TEMPEST_VENV_UPPER_CONSTRAINTS - echo "using $UPPER_CONSTRAINTS_FILE for tempest run" - - sudo -H -u tempest UPPER_CONSTRAINTS_FILE=$UPPER_CONSTRAINTS_FILE tox -eall -- $tempest_regex --concurrency=$TEMPEST_CONCURRENCY - exitcode=$? - if [[ $exitcode -ne 0 ]]; then - die $LINENO "$message failure" - fi -} |