@@ -20,7 +20,7 @@ use rustup_mock::{MockInstallerBuilder, MockCommand};
2020// Just testing that the mocks work
2121#[ test]
2222fn mock_smoke_test ( ) {
23- let tempdir = TempDir :: new ( "multirust " ) . unwrap ( ) ;
23+ let tempdir = TempDir :: new ( "rustup " ) . unwrap ( ) ;
2424
2525 let mock = MockInstallerBuilder {
2626 components : vec ! [ ( "mycomponent" . to_string( ) ,
@@ -51,7 +51,7 @@ fn mock_smoke_test() {
5151
5252#[ test]
5353fn package_contains ( ) {
54- let tempdir = TempDir :: new ( "multirust " ) . unwrap ( ) ;
54+ let tempdir = TempDir :: new ( "rustup " ) . unwrap ( ) ;
5555
5656 let mock = MockInstallerBuilder {
5757 components : vec ! [ ( "mycomponent" . to_string( ) ,
@@ -73,7 +73,7 @@ fn package_contains() {
7373
7474#[ test]
7575fn package_bad_version ( ) {
76- let tempdir = TempDir :: new ( "multirust " ) . unwrap ( ) ;
76+ let tempdir = TempDir :: new ( "rustup " ) . unwrap ( ) ;
7777
7878 let mock = MockInstallerBuilder {
7979 components : vec ! [ ( "mycomponent" . to_string( ) ,
@@ -91,7 +91,7 @@ fn package_bad_version() {
9191
9292#[ test]
9393fn basic_install ( ) {
94- let pkgdir = TempDir :: new ( "multirust " ) . unwrap ( ) ;
94+ let pkgdir = TempDir :: new ( "rustup " ) . unwrap ( ) ;
9595
9696 let mock = MockInstallerBuilder {
9797 components : vec ! [ ( "mycomponent" . to_string( ) ,
@@ -106,10 +106,10 @@ fn basic_install() {
106106
107107 mock. build ( pkgdir. path ( ) ) ;
108108
109- let instdir = TempDir :: new ( "multirust " ) . unwrap ( ) ;
109+ let instdir = TempDir :: new ( "rustup " ) . unwrap ( ) ;
110110 let prefix = InstallPrefix :: from ( instdir. path ( ) . to_owned ( ) ) ;
111111
112- let tmpdir = TempDir :: new ( "multirust " ) . unwrap ( ) ;
112+ let tmpdir = TempDir :: new ( "rustup " ) . unwrap ( ) ;
113113 let tmpcfg = temp:: Cfg :: new ( tmpdir. path ( ) . to_owned ( ) , DEFAULT_DIST_SERVER , Box :: new ( |_| ( ) ) ) ;
114114 let notify = |_: Notification | ( ) ;
115115 let tx = Transaction :: new ( prefix. clone ( ) , & tmpcfg, & notify) ;
@@ -131,7 +131,7 @@ fn basic_install() {
131131
132132#[ test]
133133fn multiple_component_install ( ) {
134- let pkgdir = TempDir :: new ( "multirust " ) . unwrap ( ) ;
134+ let pkgdir = TempDir :: new ( "rustup " ) . unwrap ( ) ;
135135
136136 let mock = MockInstallerBuilder {
137137 components : vec ! [ ( "mycomponent" . to_string( ) ,
@@ -144,10 +144,10 @@ fn multiple_component_install() {
144144
145145 mock. build ( pkgdir. path ( ) ) ;
146146
147- let instdir = TempDir :: new ( "multirust " ) . unwrap ( ) ;
147+ let instdir = TempDir :: new ( "rustup " ) . unwrap ( ) ;
148148 let prefix = InstallPrefix :: from ( instdir. path ( ) . to_owned ( ) ) ;
149149
150- let tmpdir = TempDir :: new ( "multirust " ) . unwrap ( ) ;
150+ let tmpdir = TempDir :: new ( "rustup " ) . unwrap ( ) ;
151151 let tmpcfg = temp:: Cfg :: new ( tmpdir. path ( ) . to_owned ( ) , DEFAULT_DIST_SERVER , Box :: new ( |_| ( ) ) ) ;
152152 let notify = |_: Notification | ( ) ;
153153 let tx = Transaction :: new ( prefix. clone ( ) , & tmpcfg, & notify) ;
@@ -169,7 +169,7 @@ fn multiple_component_install() {
169169
170170#[ test]
171171fn uninstall ( ) {
172- let pkgdir = TempDir :: new ( "multirust " ) . unwrap ( ) ;
172+ let pkgdir = TempDir :: new ( "rustup " ) . unwrap ( ) ;
173173
174174 let mock = MockInstallerBuilder {
175175 components : vec ! [ ( "mycomponent" . to_string( ) ,
@@ -187,10 +187,10 @@ fn uninstall() {
187187
188188 mock. build ( pkgdir. path ( ) ) ;
189189
190- let instdir = TempDir :: new ( "multirust " ) . unwrap ( ) ;
190+ let instdir = TempDir :: new ( "rustup " ) . unwrap ( ) ;
191191 let prefix = InstallPrefix :: from ( instdir. path ( ) . to_owned ( ) ) ;
192192
193- let tmpdir = TempDir :: new ( "multirust " ) . unwrap ( ) ;
193+ let tmpdir = TempDir :: new ( "rustup " ) . unwrap ( ) ;
194194 let tmpcfg = temp:: Cfg :: new ( tmpdir. path ( ) . to_owned ( ) , DEFAULT_DIST_SERVER , Box :: new ( |_| ( ) ) ) ;
195195 let notify = |_: Notification | ( ) ;
196196 let tx = Transaction :: new ( prefix. clone ( ) , & tmpcfg, & notify) ;
@@ -229,7 +229,7 @@ fn uninstall_best_effort() {
229229
230230#[ test]
231231fn component_bad_version ( ) {
232- let pkgdir = TempDir :: new ( "multirust " ) . unwrap ( ) ;
232+ let pkgdir = TempDir :: new ( "rustup " ) . unwrap ( ) ;
233233
234234 let mock = MockInstallerBuilder {
235235 components : vec ! [ ( "mycomponent" . to_string( ) ,
@@ -239,10 +239,10 @@ fn component_bad_version() {
239239
240240 mock. build ( pkgdir. path ( ) ) ;
241241
242- let instdir = TempDir :: new ( "multirust " ) . unwrap ( ) ;
242+ let instdir = TempDir :: new ( "rustup " ) . unwrap ( ) ;
243243 let prefix = InstallPrefix :: from ( instdir. path ( ) . to_owned ( ) ) ;
244244
245- let tmpdir = TempDir :: new ( "multirust " ) . unwrap ( ) ;
245+ let tmpdir = TempDir :: new ( "rustup " ) . unwrap ( ) ;
246246 let tmpcfg = temp:: Cfg :: new ( tmpdir. path ( ) . to_owned ( ) , DEFAULT_DIST_SERVER , Box :: new ( |_| ( ) ) ) ;
247247 let notify = |_: Notification | ( ) ;
248248 let tx = Transaction :: new ( prefix. clone ( ) , & tmpcfg, & notify) ;
@@ -270,7 +270,7 @@ fn unix_permissions() {
270270 use std:: os:: unix:: fs:: PermissionsExt ;
271271 use std:: fs;
272272
273- let pkgdir = TempDir :: new ( "multirust " ) . unwrap ( ) ;
273+ let pkgdir = TempDir :: new ( "rustup " ) . unwrap ( ) ;
274274
275275 let mock = MockInstallerBuilder {
276276 components : vec ! [ ( "mycomponent" . to_string( ) ,
@@ -288,10 +288,10 @@ fn unix_permissions() {
288288
289289 mock. build ( pkgdir. path ( ) ) ;
290290
291- let instdir = TempDir :: new ( "multirust " ) . unwrap ( ) ;
291+ let instdir = TempDir :: new ( "rustup " ) . unwrap ( ) ;
292292 let prefix = InstallPrefix :: from ( instdir. path ( ) . to_owned ( ) ) ;
293293
294- let tmpdir = TempDir :: new ( "multirust " ) . unwrap ( ) ;
294+ let tmpdir = TempDir :: new ( "rustup " ) . unwrap ( ) ;
295295 let tmpcfg = temp:: Cfg :: new ( tmpdir. path ( ) . to_owned ( ) , DEFAULT_DIST_SERVER , Box :: new ( |_| ( ) ) ) ;
296296 let notify = |_: Notification | ( ) ;
297297 let tx = Transaction :: new ( prefix. clone ( ) , & tmpcfg, & notify) ;
@@ -324,7 +324,7 @@ fn unix_permissions() {
324324// Installing to a prefix that doesn't exist creates it automatically
325325#[ test]
326326fn install_to_prefix_that_does_not_exist ( ) {
327- let pkgdir = TempDir :: new ( "multirust " ) . unwrap ( ) ;
327+ let pkgdir = TempDir :: new ( "rustup " ) . unwrap ( ) ;
328328
329329 let mock = MockInstallerBuilder {
330330 components : vec ! [ ( "mycomponent" . to_string( ) ,
@@ -334,12 +334,12 @@ fn install_to_prefix_that_does_not_exist() {
334334
335335 mock. build ( pkgdir. path ( ) ) ;
336336
337- let instdir = TempDir :: new ( "multirust " ) . unwrap ( ) ;
337+ let instdir = TempDir :: new ( "rustup " ) . unwrap ( ) ;
338338 // The directory that does not exist
339339 let does_not_exist = instdir. path ( ) . join ( "super_not_real" ) ;
340340 let prefix = InstallPrefix :: from ( does_not_exist. clone ( ) ) ;
341341
342- let tmpdir = TempDir :: new ( "multirust " ) . unwrap ( ) ;
342+ let tmpdir = TempDir :: new ( "rustup " ) . unwrap ( ) ;
343343 let tmpcfg = temp:: Cfg :: new ( tmpdir. path ( ) . to_owned ( ) , DEFAULT_DIST_SERVER , Box :: new ( |_| ( ) ) ) ;
344344 let notify = |_: Notification | ( ) ;
345345 let tx = Transaction :: new ( prefix. clone ( ) , & tmpcfg, & notify) ;
0 commit comments