@@ -136,8 +136,8 @@ def prep_and_run_tox(targeted_packages, tox_env, options_array=[]):
136
136
for package_dir in [package for package in targeted_packages ]:
137
137
destination_tox_ini = os .path .join (package_dir , "tox.ini" )
138
138
destination_dev_req = os .path .join (package_dir , "dev_requirements.txt" )
139
- allowed_return_codes = []
140
139
tox_execution_array = ["tox" ]
140
+ local_options_array = options_array [:]
141
141
142
142
# if we are targeting only packages that are management plane, it is a possibility
143
143
# that no tests running is an acceptable situation
@@ -150,7 +150,7 @@ def prep_and_run_tox(targeted_packages, tox_env, options_array=[]):
150
150
[package_dir ],
151
151
)
152
152
):
153
- tox_execution_array .append ("--suppress-no-test-exit-code" )
153
+ local_options_array .append ("--suppress-no-test-exit-code" )
154
154
155
155
# if not present, re-use base
156
156
if not os .path .exists (destination_tox_ini ):
@@ -166,8 +166,8 @@ def prep_and_run_tox(targeted_packages, tox_env, options_array=[]):
166
166
if tox_env :
167
167
tox_execution_array .extend (["-e" , tox_env ])
168
168
169
- if options_array :
170
- tox_execution_array .extend (["--" ] + options_array )
169
+ if local_options_array :
170
+ tox_execution_array .extend (["--" ] + local_options_array )
171
171
172
172
run_check_call (tox_execution_array , package_dir )
173
173
0 commit comments