@@ -941,7 +941,7 @@ route = "/..."
941941 "--yes" ,
942942 ] )
943943 // Ensure that spin installs the plugins into the temporary directory
944- . env ( "TEST_PLUGINS_DIRECTORY " , "./plugins" ) ;
944+ . env ( "SPIN_DATA_DIR " , "./plugins" ) ;
945945 env. run_in ( & mut install) ?;
946946
947947 /// Make sure that the plugin is uninstalled after the test
@@ -965,13 +965,11 @@ route = "/..."
965965 "--yes" ,
966966 ] )
967967 // Ensure that spin installs the plugins into the temporary directory
968- . env ( "TEST_PLUGINS_DIRECTORY " , "./plugins" ) ;
968+ . env ( "SPIN_DATA_DIR " , "./plugins" ) ;
969969 env. run_in ( & mut install) ?;
970970
971971 let mut execute = std:: process:: Command :: new ( spin_binary ( ) ) ;
972- execute
973- . args ( [ "example" ] )
974- . env ( "TEST_PLUGINS_DIRECTORY" , "./plugins" ) ;
972+ execute. args ( [ "example" ] ) . env ( "SPIN_DATA_DIR" , "./plugins" ) ;
975973 let output = env. run_in ( & mut execute) ?;
976974
977975 // Verify plugin successfully wrote to output file
@@ -995,12 +993,11 @@ route = "/..."
995993 "example-plugin-manifest.json" ,
996994 "--yes" ,
997995 ] )
998- . env ( "TEST_PLUGINS_DIRECTORY " , "./plugins" ) ;
996+ . env ( "SPIN_DATA_DIR " , "./plugins" ) ;
999997 env. run_in ( & mut upgrade) ?;
1000998
1001999 // Check plugin version
10021000 let installed_manifest = std:: path:: PathBuf :: from ( "plugins" )
1003- . join ( "spin" )
10041001 . join ( "plugins" )
10051002 . join ( "manifests" )
10061003 . join ( "example.json" ) ;
@@ -1020,7 +1017,7 @@ route = "/..."
10201017 login
10211018 . args ( [ "login" , "--help" ] )
10221019 // Ensure that spin installs the plugins into the temporary directory
1023- . env ( "TEST_PLUGINS_DIRECTORY " , "./plugins" ) ;
1020+ . env ( "SPIN_DATA_DIR " , "./plugins" ) ;
10241021 let output = env. run_in ( & mut login) ?;
10251022
10261023 // Verify plugin successfully wrote to output file
@@ -1413,7 +1410,7 @@ route = "/..."
14131410
14141411 // Create a test plugin store so we don't modify the user's real one.
14151412 let plugin_store_dir = Path :: new ( concat ! ( env!( "OUT_DIR" ) , "/plugin-store" ) ) ;
1416- let plugins_dir = plugin_store_dir. join ( "spin/ plugins" ) ;
1413+ let plugins_dir = plugin_store_dir. join ( "plugins" ) ;
14171414
14181415 let plugin_dir = plugins_dir. join ( "trigger-timer" ) ;
14191416 fs:: create_dir_all ( & plugin_dir) ?;
@@ -1440,7 +1437,7 @@ route = "/..."
14401437 & format ! ( "{TIMER_TRIGGER_INTEGRATION_TEST}/spin.toml" ) ,
14411438 "--test" ,
14421439 ] )
1443- . env ( "TEST_PLUGINS_DIRECTORY " , plugin_store_dir)
1440+ . env ( "SPIN_DATA_DIR " , plugin_store_dir)
14441441 . output ( ) ?;
14451442 assert ! (
14461443 out. status. success( ) ,
0 commit comments