@@ -903,7 +903,7 @@ route = "/..."
903903 "--yes" ,
904904 ] )
905905 // Ensure that spin installs the plugins into the temporary directory
906- . env ( "TEST_PLUGINS_DIRECTORY " , "./plugins" ) ;
906+ . env ( "SPIN_DATA_DIR " , "./plugins" ) ;
907907 env. run_in ( & mut install) ?;
908908
909909 /// Make sure that the plugin is uninstalled after the test
@@ -927,13 +927,11 @@ route = "/..."
927927 "--yes" ,
928928 ] )
929929 // Ensure that spin installs the plugins into the temporary directory
930- . env ( "TEST_PLUGINS_DIRECTORY " , "./plugins" ) ;
930+ . env ( "SPIN_DATA_DIR " , "./plugins" ) ;
931931 env. run_in ( & mut install) ?;
932932
933933 let mut execute = std:: process:: Command :: new ( spin_binary ( ) ) ;
934- execute
935- . args ( [ "example" ] )
936- . env ( "TEST_PLUGINS_DIRECTORY" , "./plugins" ) ;
934+ execute. args ( [ "example" ] ) . env ( "SPIN_DATA_DIR" , "./plugins" ) ;
937935 let output = env. run_in ( & mut execute) ?;
938936
939937 // Verify plugin successfully wrote to output file
@@ -957,12 +955,11 @@ route = "/..."
957955 "example-plugin-manifest.json" ,
958956 "--yes" ,
959957 ] )
960- . env ( "TEST_PLUGINS_DIRECTORY " , "./plugins" ) ;
958+ . env ( "SPIN_DATA_DIR " , "./plugins" ) ;
961959 env. run_in ( & mut upgrade) ?;
962960
963961 // Check plugin version
964962 let installed_manifest = std:: path:: PathBuf :: from ( "plugins" )
965- . join ( "spin" )
966963 . join ( "plugins" )
967964 . join ( "manifests" )
968965 . join ( "example.json" ) ;
@@ -984,7 +981,7 @@ route = "/..."
984981 login
985982 . args ( [ "login" , "--help" ] )
986983 // Ensure that spin installs the plugins into the temporary directory
987- . env ( "TEST_PLUGINS_DIRECTORY " , "./plugins" ) ;
984+ . env ( "SPIN_DATA_DIR " , "./plugins" ) ;
988985 let output = env. run_in ( & mut login) ?;
989986
990987 // Verify plugin successfully wrote to output file
@@ -1361,7 +1358,7 @@ route = "/..."
13611358
13621359 // Create a test plugin store so we don't modify the user's real one.
13631360 let plugin_store_dir = Path :: new ( concat ! ( env!( "OUT_DIR" ) , "/plugin-store" ) ) ;
1364- let plugins_dir = plugin_store_dir. join ( "spin/ plugins" ) ;
1361+ let plugins_dir = plugin_store_dir. join ( "plugins" ) ;
13651362
13661363 let plugin_dir = plugins_dir. join ( "trigger-timer" ) ;
13671364 fs:: create_dir_all ( & plugin_dir) ?;
@@ -1388,7 +1385,7 @@ route = "/..."
13881385 & format ! ( "{TIMER_TRIGGER_INTEGRATION_TEST}/spin.toml" ) ,
13891386 "--test" ,
13901387 ] )
1391- . env ( "TEST_PLUGINS_DIRECTORY " , plugin_store_dir)
1388+ . env ( "SPIN_DATA_DIR " , plugin_store_dir)
13921389 . output ( ) ?;
13931390 assert ! (
13941391 out. status. success( ) ,
0 commit comments