Add nose and coverage requirements in unittest script
[releng.git] / jjb / fuel / fuel-basic-exp.sh
1 #!/bin/bash
2 set -o nounset
3
4 echo "-----------------------------------------------------------------------"
5 echo $GERRIT_CHANGE_COMMIT_MESSAGE
6 echo "-----------------------------------------------------------------------"
7
8 # proposal for specifying the scenario name in commit message
9 # currently only 1 scenario name is supported but depending on
10 # the need, it can be expanded, supporting multiple scenarios
11 # using comma separated list or something
12 SCENARIO_NAME_PATTERN="(?<=@scenario:).*?(?=@)"
13 SCENARIO_NAME=(echo $GERRIT_CHANGE_COMMIT_MESSAGE | grep -oP "$SCENARIO_NAME_PATTERN")
14 if [[ $? -ne 0 ]]; then
15     echo "The patch verification will be done only with build!"
16 else
17     echo "Will run full verification; build, deploy, and smoke test using scenario $SCENARIO_NAME"
18 fi