summaryrefslogtreecommitdiffstats
path: root/scripts/run_functional_tests
diff options
context:
space:
mode:
authorYaroslav Brustinov <ybrustin@cisco.com>2016-04-14 17:23:04 +0300
committerYaroslav Brustinov <ybrustin@cisco.com>2016-04-14 17:23:04 +0300
commit501fb3b44f14e9c0d40a63bd8b47200b01e50be9 (patch)
treea45a01a5d0e724282f83df5b419916afd6784ca6 /scripts/run_functional_tests
parente0720b15ec9dc695a8c1799e87cbe41a670cb616 (diff)
regression: python3 support
Diffstat (limited to 'scripts/run_functional_tests')
-rwxr-xr-xscripts/run_functional_tests5
1 files changed, 3 insertions, 2 deletions
diff --git a/scripts/run_functional_tests b/scripts/run_functional_tests
index 9ec1bd39..c43224af 100755
--- a/scripts/run_functional_tests
+++ b/scripts/run_functional_tests
@@ -1,5 +1,6 @@
#!/bin/bash
+INPUT_ARGS=${@//--python[23]/}
if [[ $@ =~ '--python2' || ! $@ =~ '--python3' ]]; then
source find_python.sh --python2
@@ -7,7 +8,7 @@ if [[ $@ =~ '--python2' || ! $@ =~ '--python3' ]]; then
# Python 2
echo Python2 test
- $PYTHON trex_unit_test.py --functional $@
+ $PYTHON trex_unit_test.py --functional $INPUT_ARGS
if [ $? -eq 0 ]; then
printf "\n$PYTHON test succeeded\n\n"
else
@@ -23,7 +24,7 @@ if [[ $@ =~ '--python3' || ! $@ =~ '--python2' ]]; then
# Python 3
echo Python3 test
- $PYTHON trex_unit_test.py --functional $@
+ $PYTHON trex_unit_test.py --functional $INPUT_ARGS
if [ $? -eq 0 ]; then
printf "\n$PYTHON test succeeded\n\n"
else