summaryrefslogtreecommitdiffstats
path: root/scripts/run_functional_tests
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/run_functional_tests')
-rwxr-xr-xscripts/run_functional_tests12
1 files changed, 8 insertions, 4 deletions
diff --git a/scripts/run_functional_tests b/scripts/run_functional_tests
index 6e6a00a1..6212b40b 100755
--- a/scripts/run_functional_tests
+++ b/scripts/run_functional_tests
@@ -1,6 +1,6 @@
#!/bin/bash
-source find_python.sh
+source find_python.sh --python2
cd automation/regression
# Python 2
@@ -13,13 +13,17 @@ else
exit -1
fi
+cd -
+source find_python.sh --python3
+cd -
+
# Python 3
echo Python3 test
-$PYTHON3 trex_unit_test.py --functional $@
+$PYTHON trex_unit_test.py --functional $@
if [ $? -eq 0 ]; then
- printf "\n$PYTHON3 test succeeded\n\n"
+ printf "\n$PYTHON test succeeded\n\n"
else
- printf "\n*** $PYTHON3 test failed\n\n"
+ printf "\n*** $PYTHON test failed\n\n"
exit -1
fi