@@ -195,14 +195,21 @@ def test_provision_no_recreate_json(tox_project: ToxProjectCreator) -> None:
195
195
def test_provision_plugin_runner (tox_project : ToxProjectCreator , tmp_path : Path , plugin_testenv : str ) -> None :
196
196
"""Ensure that testenv runner doesn't affect the provision env."""
197
197
log = tmp_path / "out.log"
198
- proj = tox_project ({ "tox.ini" : f"[tox] \n requires=demo-pkg-inline \n [ { plugin_testenv } ] \n runner=example" })
199
- result_first = proj . run ( "r" , "-e" , "py" , "--result-json" , str ( log ))
200
- result_first . assert_success ( )
198
+ proj = tox_project (
199
+ { "tox.ini" : f"[tox] \n requires=demo-pkg-inline \n labels=l=py \n [ { plugin_testenv } ] \n runner=example" },
200
+ )
201
201
prov_msg = (
202
202
f"ROOT: will run in automatically provisioned tox, host { sys .executable } is missing"
203
203
f" [requires (has)]: demo-pkg-inline"
204
204
)
205
- assert prov_msg in result_first .out
205
+
206
+ result_env = proj .run ("r" , "-e" , "py" , "--result-json" , str (log ))
207
+ result_env .assert_success ()
208
+ assert prov_msg in result_env .out
209
+
210
+ result_label = proj .run ("r" , "-m" , "l" , "--result-json" , str (log ))
211
+ result_label .assert_success ()
212
+ assert prov_msg in result_label .out
206
213
207
214
208
215
@pytest .mark .integration ()
0 commit comments