summaryrefslogtreecommitdiff
path: root/gate/live_migration/hooks/utils.sh
blob: 9f98ca2e254ac384e5d1b5b88164085502a1afa8 (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/bash

function run_tempest {
    local message=$1
    local tempest_regex=$2
    sudo -H -u tempest tox -eall -- $tempest_regex --concurrency=$TEMPEST_CONCURRENCY
    exitcode=$?
    if [[ $exitcode -ne 0 ]]; then
      die $LINENO "$message failure"
    fi
}