Browse Source

fix tox python3 overrides

We want to default to running all tox environments under python 3, so
set the basepython value in each environment.

We do not want to specify a minor version number, because we do not
want to have to update the file every time we upgrade python.

We do not want to set the override once in testenv, because that
breaks the more specific versions used in default environments like
py35 and py36.

Change-Id: I15b254299073e1c4437445f4f694643637b39558
Closes-Bug:  #1801657
huang.zhiping 5 months ago
parent
commit
8aa94263d2
1 changed files with 3 additions and 0 deletions
  1. 3
    0
      tox.ini

+ 3
- 0
tox.ini View File

@@ -75,16 +75,19 @@ ignore=F403
75 75
 
76 76
 
77 77
 [testenv:bashate]
78
+basepython = python3
78 79
 commands =
79 80
     bash -c "{toxinidir}/tests/common/test-bashate.sh"
80 81
 
81 82
 
82 83
 [testenv:ansible-syntax]
84
+basepython = python3
83 85
 commands =
84 86
     bash -c "{toxinidir}/tests/common/test-ansible-syntax.sh"
85 87
 
86 88
 
87 89
 [testenv:ansible-lint]
90
+basepython = python3
88 91
 commands =
89 92
     bash -c "{toxinidir}/tests/common/test-ansible-lint.sh"
90 93
 

Loading…
Cancel
Save