@@ -35,7 +35,7 @@ use test_case::test_case;
3535
3636#[ test]
3737fn test_list_binaries ( ) -> Result < ( ) > {
38- set_env_vars ( ) ;
38+ test_init ( ) ;
3939
4040 let graph = & * PACKAGE_GRAPH ;
4141 let build_platforms = BuildPlatforms :: new_with_no_target ( ) ?;
@@ -70,7 +70,7 @@ fn test_list_binaries() -> Result<()> {
7070
7171#[ test]
7272fn test_list_tests ( ) -> Result < ( ) > {
73- set_env_vars ( ) ;
73+ test_init ( ) ;
7474
7575 let test_filter = TestFilterBuilder :: default_set ( RunIgnored :: Default ) ;
7676 let test_list = FIXTURE_TARGETS . make_test_list (
@@ -116,7 +116,7 @@ fn test_list_tests() -> Result<()> {
116116
117117#[ test]
118118fn test_run ( ) -> Result < ( ) > {
119- set_env_vars ( ) ;
119+ test_init ( ) ;
120120
121121 let test_filter = TestFilterBuilder :: default_set ( RunIgnored :: Default ) ;
122122 let test_list = FIXTURE_TARGETS . make_test_list (
@@ -240,7 +240,7 @@ fn test_run() -> Result<()> {
240240
241241#[ test]
242242fn test_run_ignored ( ) -> Result < ( ) > {
243- set_env_vars ( ) ;
243+ test_init ( ) ;
244244
245245 let pcx = ParseContext :: new ( & PACKAGE_GRAPH ) ;
246246 let expr = Filterset :: parse (
@@ -340,7 +340,7 @@ fn test_run_ignored() -> Result<()> {
340340/// Test that filtersets with regular substring filters behave as expected.
341341#[ test]
342342fn test_filter_expr_with_string_filters ( ) -> Result < ( ) > {
343- set_env_vars ( ) ;
343+ test_init ( ) ;
344344
345345 let pcx = ParseContext :: new ( & PACKAGE_GRAPH ) ;
346346 let expr = Filterset :: parse (
@@ -412,7 +412,7 @@ fn test_filter_expr_with_string_filters() -> Result<()> {
412412/// Test that filtersets without regular substring filters behave as expected.
413413#[ test]
414414fn test_filter_expr_without_string_filters ( ) -> Result < ( ) > {
415- set_env_vars ( ) ;
415+ test_init ( ) ;
416416
417417 let pcx = ParseContext :: new ( & PACKAGE_GRAPH ) ;
418418 let expr = Filterset :: parse (
@@ -453,7 +453,7 @@ fn test_filter_expr_without_string_filters() -> Result<()> {
453453
454454#[ test]
455455fn test_string_filters_without_filter_expr ( ) -> Result < ( ) > {
456- set_env_vars ( ) ;
456+ test_init ( ) ;
457457
458458 let test_filter = TestFilterBuilder :: new (
459459 RunIgnored :: Default ,
@@ -498,7 +498,7 @@ fn test_string_filters_without_filter_expr() -> Result<()> {
498498 ; "retry overrides ignored"
499499) ]
500500fn test_retries ( retries : Option < RetryPolicy > ) -> Result < ( ) > {
501- set_env_vars ( ) ;
501+ test_init ( ) ;
502502
503503 let test_filter = TestFilterBuilder :: default_set ( RunIgnored :: Default ) ;
504504 let test_list = FIXTURE_TARGETS . make_test_list (
@@ -663,7 +663,7 @@ fn test_retries(retries: Option<RetryPolicy>) -> Result<()> {
663663
664664#[ test]
665665fn test_termination ( ) -> Result < ( ) > {
666- set_env_vars ( ) ;
666+ test_init ( ) ;
667667
668668 let pcx = ParseContext :: new ( & PACKAGE_GRAPH ) ;
669669 let expr = Filterset :: parse (
0 commit comments