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: I1d9a985c6c81f7ee789daa4c8529d33635503787
Closes-Bug:  #1801657
huang.zhiping 6 months ago
parent
commit
0b372f9111
1 changed files with 3 additions and 0 deletions
  1. 3
    0
      tox.ini

+ 3
- 0
tox.ini View File

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

Loading…
Cancel
Save