]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
script/run_tox.sh: remove unused code
authorKefu Chai <tchaikov@gmail.com>
Sun, 15 Sep 2019 07:45:00 +0000 (15:45 +0800)
committerKefu Chai <tchaikov@gmail.com>
Sun, 15 Sep 2019 07:45:22 +0000 (15:45 +0800)
it's a follow-up of 793308f8, where the code to use python2/python3 to
determine env_list was removed already

Signed-off-by: Kefu Chai <tchaikov@gmail.com>
src/script/run_tox.sh

index 14e3e641d9406759b1c161e493e6ad965846a762..e284f3dd678c3cbcdaa71cab083464a65edd1fb5 100755 (executable)
@@ -101,12 +101,6 @@ function main() {
         esac
     done
 
-    # normalize options
-    [ "$with_python2" = "ON" ] && with_python2=true || with_python2=false
-    # WITH_PYTHON3 might be set to "ON" or to the python3 RPM version number
-    # prevailing on the system - e.g. "3", "36"
-    [[ "$with_python3" =~ (^3|^ON) ]] && with_python3=true || with_python3=false
-
     local test_name
     if [ -z "$tox_path" ]; then
         # try harder