summaryrefslogtreecommitdiffstats
path: root/tests/run.sh
diff options
context:
space:
mode:
authorRyota MIBU <r-mibu@cq.jp.nec.com>2017-04-26 11:31:03 +0000
committerCarlos Goncalves <carlos.goncalves@neclab.eu>2017-05-30 12:28:29 +0200
commit20b36795291f3e35b11b38fd9f58fa4d6d4e12bc (patch)
tree0a5bf3bca9e79393ec01337d80f604a2807e4557 /tests/run.sh
parent263682e54a4d75d1f33c76735ffa2fe9debe0161 (diff)
Adding PYTHON_ENABLE option
This option will be removed, once we confirmed tox/python testing code works fine and functest trigger has changed from 'run.sh' to 'tox'. Signed-off-by: Ryota MIBU <r-mibu@cq.jp.nec.com> Signed-off-by: Carlos Goncalves <carlos.goncalves@neclab.eu> Change-Id: Ia4421f6e39a415bd7b6212af612249deb482e7af
Diffstat (limited to 'tests/run.sh')
-rwxr-xr-xtests/run.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/run.sh b/tests/run.sh
index d97a5c9c..7f95a8a4 100755
--- a/tests/run.sh
+++ b/tests/run.sh
@@ -31,6 +31,7 @@ DOCTOR_PROJECT=doctor
#TODO: change back to `_member_` when JIRA DOCTOR-55 is done
DOCTOR_ROLE=admin
PROFILER_TYPE=${PROFILER_TYPE:-none}
+PYTHON_ENABLE=${PYTHON_ENABLE:-false}
TOP_DIR=$(cd $(dirname "$0") && pwd)
@@ -457,6 +458,13 @@ cleanup() {
# Main process
+if $PYTHON_ENABLE; then
+ cd $TOP_DIR
+ echo "executing tox..."
+ tox
+ exit $?
+fi
+
echo "Note: doctor/tests/run.sh has been executed."
git log --oneline -1 || true # ignore even you don't have git installed