Merge "Fix unit test to use python3 command" into stable/ussuri

This commit is contained in:
Zuul
2021-05-29 08:05:40 +00:00
committed by Gerrit Code Review
2 changed files with 3 additions and 1 deletions

View File

@@ -6,4 +6,4 @@ TOP=$(cd $(dirname "$0")/.. && pwd)
source $TOP/functions
source $TOP/tests/unittest.sh
python ./roles/write-devstack-local-conf/library/test.py
${PYTHON} $TOP/roles/write-devstack-local-conf/library/test.py

View File

@@ -17,6 +17,8 @@ ERROR=0
PASS=0
FAILED_FUNCS=""
export PYTHON=$(which python3 2>/dev/null)
# pass a test, printing out MSG
# usage: passed message
function passed {