@@ -20,7 +20,7 @@ use rustup_mock::{MockInstallerBuilder, MockCommand};
20
20
// Just testing that the mocks work
21
21
#[ test]
22
22
fn mock_smoke_test ( ) {
23
- let tempdir = TempDir :: new ( "multirust " ) . unwrap ( ) ;
23
+ let tempdir = TempDir :: new ( "rustup " ) . unwrap ( ) ;
24
24
25
25
let mock = MockInstallerBuilder {
26
26
components : vec ! [ ( "mycomponent" . to_string( ) ,
@@ -51,7 +51,7 @@ fn mock_smoke_test() {
51
51
52
52
#[ test]
53
53
fn package_contains ( ) {
54
- let tempdir = TempDir :: new ( "multirust " ) . unwrap ( ) ;
54
+ let tempdir = TempDir :: new ( "rustup " ) . unwrap ( ) ;
55
55
56
56
let mock = MockInstallerBuilder {
57
57
components : vec ! [ ( "mycomponent" . to_string( ) ,
@@ -73,7 +73,7 @@ fn package_contains() {
73
73
74
74
#[ test]
75
75
fn package_bad_version ( ) {
76
- let tempdir = TempDir :: new ( "multirust " ) . unwrap ( ) ;
76
+ let tempdir = TempDir :: new ( "rustup " ) . unwrap ( ) ;
77
77
78
78
let mock = MockInstallerBuilder {
79
79
components : vec ! [ ( "mycomponent" . to_string( ) ,
@@ -91,7 +91,7 @@ fn package_bad_version() {
91
91
92
92
#[ test]
93
93
fn basic_install ( ) {
94
- let pkgdir = TempDir :: new ( "multirust " ) . unwrap ( ) ;
94
+ let pkgdir = TempDir :: new ( "rustup " ) . unwrap ( ) ;
95
95
96
96
let mock = MockInstallerBuilder {
97
97
components : vec ! [ ( "mycomponent" . to_string( ) ,
@@ -106,10 +106,10 @@ fn basic_install() {
106
106
107
107
mock. build ( pkgdir. path ( ) ) ;
108
108
109
- let instdir = TempDir :: new ( "multirust " ) . unwrap ( ) ;
109
+ let instdir = TempDir :: new ( "rustup " ) . unwrap ( ) ;
110
110
let prefix = InstallPrefix :: from ( instdir. path ( ) . to_owned ( ) ) ;
111
111
112
- let tmpdir = TempDir :: new ( "multirust " ) . unwrap ( ) ;
112
+ let tmpdir = TempDir :: new ( "rustup " ) . unwrap ( ) ;
113
113
let tmpcfg = temp:: Cfg :: new ( tmpdir. path ( ) . to_owned ( ) , DEFAULT_DIST_SERVER , Box :: new ( |_| ( ) ) ) ;
114
114
let notify = |_: Notification | ( ) ;
115
115
let tx = Transaction :: new ( prefix. clone ( ) , & tmpcfg, & notify) ;
@@ -131,7 +131,7 @@ fn basic_install() {
131
131
132
132
#[ test]
133
133
fn multiple_component_install ( ) {
134
- let pkgdir = TempDir :: new ( "multirust " ) . unwrap ( ) ;
134
+ let pkgdir = TempDir :: new ( "rustup " ) . unwrap ( ) ;
135
135
136
136
let mock = MockInstallerBuilder {
137
137
components : vec ! [ ( "mycomponent" . to_string( ) ,
@@ -144,10 +144,10 @@ fn multiple_component_install() {
144
144
145
145
mock. build ( pkgdir. path ( ) ) ;
146
146
147
- let instdir = TempDir :: new ( "multirust " ) . unwrap ( ) ;
147
+ let instdir = TempDir :: new ( "rustup " ) . unwrap ( ) ;
148
148
let prefix = InstallPrefix :: from ( instdir. path ( ) . to_owned ( ) ) ;
149
149
150
- let tmpdir = TempDir :: new ( "multirust " ) . unwrap ( ) ;
150
+ let tmpdir = TempDir :: new ( "rustup " ) . unwrap ( ) ;
151
151
let tmpcfg = temp:: Cfg :: new ( tmpdir. path ( ) . to_owned ( ) , DEFAULT_DIST_SERVER , Box :: new ( |_| ( ) ) ) ;
152
152
let notify = |_: Notification | ( ) ;
153
153
let tx = Transaction :: new ( prefix. clone ( ) , & tmpcfg, & notify) ;
@@ -169,7 +169,7 @@ fn multiple_component_install() {
169
169
170
170
#[ test]
171
171
fn uninstall ( ) {
172
- let pkgdir = TempDir :: new ( "multirust " ) . unwrap ( ) ;
172
+ let pkgdir = TempDir :: new ( "rustup " ) . unwrap ( ) ;
173
173
174
174
let mock = MockInstallerBuilder {
175
175
components : vec ! [ ( "mycomponent" . to_string( ) ,
@@ -187,10 +187,10 @@ fn uninstall() {
187
187
188
188
mock. build ( pkgdir. path ( ) ) ;
189
189
190
- let instdir = TempDir :: new ( "multirust " ) . unwrap ( ) ;
190
+ let instdir = TempDir :: new ( "rustup " ) . unwrap ( ) ;
191
191
let prefix = InstallPrefix :: from ( instdir. path ( ) . to_owned ( ) ) ;
192
192
193
- let tmpdir = TempDir :: new ( "multirust " ) . unwrap ( ) ;
193
+ let tmpdir = TempDir :: new ( "rustup " ) . unwrap ( ) ;
194
194
let tmpcfg = temp:: Cfg :: new ( tmpdir. path ( ) . to_owned ( ) , DEFAULT_DIST_SERVER , Box :: new ( |_| ( ) ) ) ;
195
195
let notify = |_: Notification | ( ) ;
196
196
let tx = Transaction :: new ( prefix. clone ( ) , & tmpcfg, & notify) ;
@@ -229,7 +229,7 @@ fn uninstall_best_effort() {
229
229
230
230
#[ test]
231
231
fn component_bad_version ( ) {
232
- let pkgdir = TempDir :: new ( "multirust " ) . unwrap ( ) ;
232
+ let pkgdir = TempDir :: new ( "rustup " ) . unwrap ( ) ;
233
233
234
234
let mock = MockInstallerBuilder {
235
235
components : vec ! [ ( "mycomponent" . to_string( ) ,
@@ -239,10 +239,10 @@ fn component_bad_version() {
239
239
240
240
mock. build ( pkgdir. path ( ) ) ;
241
241
242
- let instdir = TempDir :: new ( "multirust " ) . unwrap ( ) ;
242
+ let instdir = TempDir :: new ( "rustup " ) . unwrap ( ) ;
243
243
let prefix = InstallPrefix :: from ( instdir. path ( ) . to_owned ( ) ) ;
244
244
245
- let tmpdir = TempDir :: new ( "multirust " ) . unwrap ( ) ;
245
+ let tmpdir = TempDir :: new ( "rustup " ) . unwrap ( ) ;
246
246
let tmpcfg = temp:: Cfg :: new ( tmpdir. path ( ) . to_owned ( ) , DEFAULT_DIST_SERVER , Box :: new ( |_| ( ) ) ) ;
247
247
let notify = |_: Notification | ( ) ;
248
248
let tx = Transaction :: new ( prefix. clone ( ) , & tmpcfg, & notify) ;
@@ -270,7 +270,7 @@ fn unix_permissions() {
270
270
use std:: os:: unix:: fs:: PermissionsExt ;
271
271
use std:: fs;
272
272
273
- let pkgdir = TempDir :: new ( "multirust " ) . unwrap ( ) ;
273
+ let pkgdir = TempDir :: new ( "rustup " ) . unwrap ( ) ;
274
274
275
275
let mock = MockInstallerBuilder {
276
276
components : vec ! [ ( "mycomponent" . to_string( ) ,
@@ -288,10 +288,10 @@ fn unix_permissions() {
288
288
289
289
mock. build ( pkgdir. path ( ) ) ;
290
290
291
- let instdir = TempDir :: new ( "multirust " ) . unwrap ( ) ;
291
+ let instdir = TempDir :: new ( "rustup " ) . unwrap ( ) ;
292
292
let prefix = InstallPrefix :: from ( instdir. path ( ) . to_owned ( ) ) ;
293
293
294
- let tmpdir = TempDir :: new ( "multirust " ) . unwrap ( ) ;
294
+ let tmpdir = TempDir :: new ( "rustup " ) . unwrap ( ) ;
295
295
let tmpcfg = temp:: Cfg :: new ( tmpdir. path ( ) . to_owned ( ) , DEFAULT_DIST_SERVER , Box :: new ( |_| ( ) ) ) ;
296
296
let notify = |_: Notification | ( ) ;
297
297
let tx = Transaction :: new ( prefix. clone ( ) , & tmpcfg, & notify) ;
@@ -324,7 +324,7 @@ fn unix_permissions() {
324
324
// Installing to a prefix that doesn't exist creates it automatically
325
325
#[ test]
326
326
fn install_to_prefix_that_does_not_exist ( ) {
327
- let pkgdir = TempDir :: new ( "multirust " ) . unwrap ( ) ;
327
+ let pkgdir = TempDir :: new ( "rustup " ) . unwrap ( ) ;
328
328
329
329
let mock = MockInstallerBuilder {
330
330
components : vec ! [ ( "mycomponent" . to_string( ) ,
@@ -334,12 +334,12 @@ fn install_to_prefix_that_does_not_exist() {
334
334
335
335
mock. build ( pkgdir. path ( ) ) ;
336
336
337
- let instdir = TempDir :: new ( "multirust " ) . unwrap ( ) ;
337
+ let instdir = TempDir :: new ( "rustup " ) . unwrap ( ) ;
338
338
// The directory that does not exist
339
339
let does_not_exist = instdir. path ( ) . join ( "super_not_real" ) ;
340
340
let prefix = InstallPrefix :: from ( does_not_exist. clone ( ) ) ;
341
341
342
- let tmpdir = TempDir :: new ( "multirust " ) . unwrap ( ) ;
342
+ let tmpdir = TempDir :: new ( "rustup " ) . unwrap ( ) ;
343
343
let tmpcfg = temp:: Cfg :: new ( tmpdir. path ( ) . to_owned ( ) , DEFAULT_DIST_SERVER , Box :: new ( |_| ( ) ) ) ;
344
344
let notify = |_: Notification | ( ) ;
345
345
let tx = Transaction :: new ( prefix. clone ( ) , & tmpcfg, & notify) ;
0 commit comments