diff options
author | 2016-07-04 12:55:42 +0300 | |
---|---|---|
committer | 2016-07-04 12:55:42 +0300 | |
commit | 7f58dadbd502f6fe504170c443505c7ad2eb3785 (patch) | |
tree | 1f86a439d24565332a7a286841913d080fb0be74 /scripts/run_regression | |
parent | a76479bc269cad96475f9c71381b4f826d47709f (diff) | |
parent | 582e6dddb5693d5fa7576c19b0ef7c1c0723ff59 (diff) |
Merge branch 'master' into cpu_per_core
Diffstat (limited to 'scripts/run_regression')
-rwxr-xr-x | scripts/run_regression | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/scripts/run_regression b/scripts/run_regression index bdc2f185..407b7f84 100755 --- a/scripts/run_regression +++ b/scripts/run_regression @@ -1,6 +1,9 @@ #!/bin/bash -INPUT_ARGS=${@//--python[23]/} +ARGS=() +for var in "$@"; do + [[ "$var" != '--python2' && "$var" != '--python3' ]] && ARGS+=("$var") +done if [[ $@ =~ '--python2' || ! $@ =~ '--python3' ]]; then source find_python.sh --python2 @@ -8,7 +11,7 @@ if [[ $@ =~ '--python2' || ! $@ =~ '--python3' ]]; then # Python 2 echo Python2 test - $PYTHON trex_unit_test.py $INPUT_ARGS + $PYTHON trex_unit_test.py "${ARGS[@]}" if [ $? -eq 0 ]; then printf "\n$PYTHON test succeeded\n\n" else @@ -24,7 +27,7 @@ if [[ $@ =~ '--python3' ]]; then # Python 3 echo Python3 test - $PYTHON trex_unit_test.py $INPUT_ARGS + $PYTHON trex_unit_test.py "${ARGS[@]}" if [ $? -eq 0 ]; then printf "\n$PYTHON test succeeded\n\n" else |