@@ -260,7 +260,13 @@ fn rustup_xz() {
260
260
set_current_dist_date ( config, "2015-01-01" ) ;
261
261
expect_stderr_ok (
262
262
config,
263
- & [ "rustup" , "--verbose" , "update" , "nightly" , "--no-self-update" ] ,
263
+ & [
264
+ "rustup" ,
265
+ "--verbose" ,
266
+ "update" ,
267
+ "nightly" ,
268
+ "--no-self-update" ,
269
+ ] ,
264
270
for_host ! ( r"dist/2015-01-01/rust-std-nightly-{0}.tar.xz" ) ,
265
271
) ;
266
272
} ) ;
@@ -904,7 +910,10 @@ fn set_default_host_invalid_triple() {
904
910
fn update_doesnt_update_non_tracking_channels ( ) {
905
911
setup ( & |config| {
906
912
expect_ok ( config, & [ "rustup" , "default" , "nightly" ] ) ;
907
- expect_ok ( config, & [ "rustup" , "update" , "nightly-2015-01-01" , "--no-self-update" ] ) ;
913
+ expect_ok (
914
+ config,
915
+ & [ "rustup" , "update" , "nightly-2015-01-01" , "--no-self-update" ] ,
916
+ ) ;
908
917
let mut cmd = clitools:: cmd ( config, "rustup" , & [ "update" ] ) ;
909
918
clitools:: env ( config, & mut cmd) ;
910
919
let out = cmd. output ( ) . unwrap ( ) ;
@@ -918,7 +927,16 @@ fn update_doesnt_update_non_tracking_channels() {
918
927
#[ test]
919
928
fn toolchain_install_is_like_update ( ) {
920
929
setup ( & |config| {
921
- expect_ok ( config, & [ "rustup" , "toolchain" , "install" , "nightly" , "--no-self-update" ] ) ;
930
+ expect_ok (
931
+ config,
932
+ & [
933
+ "rustup" ,
934
+ "toolchain" ,
935
+ "install" ,
936
+ "nightly" ,
937
+ "--no-self-update" ,
938
+ ] ,
939
+ ) ;
922
940
expect_stdout_ok (
923
941
config,
924
942
& [ "rustup" , "run" , "nightly" , "rustc" , "--version" ] ,
@@ -941,7 +959,16 @@ fn toolchain_install_is_like_update_except_that_bare_install_is_an_error() {
941
959
#[ test]
942
960
fn toolchain_update_is_like_update ( ) {
943
961
setup ( & |config| {
944
- expect_ok ( config, & [ "rustup" , "toolchain" , "update" , "nightly" , "--no-self-update" ] ) ;
962
+ expect_ok (
963
+ config,
964
+ & [
965
+ "rustup" ,
966
+ "toolchain" ,
967
+ "update" ,
968
+ "nightly" ,
969
+ "--no-self-update" ,
970
+ ] ,
971
+ ) ;
945
972
expect_stdout_ok (
946
973
config,
947
974
& [ "rustup" , "run" , "nightly" , "rustc" , "--version" ] ,
@@ -978,7 +1005,16 @@ fn toolchain_update_is_like_update_except_that_bare_install_is_an_error() {
978
1005
fn proxy_toolchain_shorthand ( ) {
979
1006
setup ( & |config| {
980
1007
expect_ok ( config, & [ "rustup" , "default" , "stable" ] ) ;
981
- expect_ok ( config, & [ "rustup" , "toolchain" , "update" , "nightly" , "--no-self-update" ] ) ;
1008
+ expect_ok (
1009
+ config,
1010
+ & [
1011
+ "rustup" ,
1012
+ "toolchain" ,
1013
+ "update" ,
1014
+ "nightly" ,
1015
+ "--no-self-update" ,
1016
+ ] ,
1017
+ ) ;
982
1018
expect_stdout_ok ( config, & [ "rustc" , "--version" ] , "hash-s-2" ) ;
983
1019
expect_stdout_ok ( config, & [ "rustc" , "+stable" , "--version" ] , "hash-s-2" ) ;
984
1020
expect_stdout_ok ( config, & [ "rustc" , "+nightly" , "--version" ] , "hash-n-2" ) ;
@@ -1237,7 +1273,16 @@ fn multirust_upgrade_works_with_proxy() {
1237
1273
fn file_override ( ) {
1238
1274
setup ( & |config| {
1239
1275
expect_ok ( config, & [ "rustup" , "default" , "stable" ] ) ;
1240
- expect_ok ( config, & [ "rustup" , "toolchain" , "install" , "nightly" , "--no-self-update" ] ) ;
1276
+ expect_ok (
1277
+ config,
1278
+ & [
1279
+ "rustup" ,
1280
+ "toolchain" ,
1281
+ "install" ,
1282
+ "nightly" ,
1283
+ "--no-self-update" ,
1284
+ ] ,
1285
+ ) ;
1241
1286
1242
1287
expect_stdout_ok ( config, & [ "rustc" , "--version" ] , "hash-s-2" ) ;
1243
1288
@@ -1253,7 +1298,16 @@ fn file_override() {
1253
1298
fn file_override_subdir ( ) {
1254
1299
setup ( & |config| {
1255
1300
expect_ok ( config, & [ "rustup" , "default" , "stable" ] ) ;
1256
- expect_ok ( config, & [ "rustup" , "toolchain" , "install" , "nightly" , "--no-self-update" ] ) ;
1301
+ expect_ok (
1302
+ config,
1303
+ & [
1304
+ "rustup" ,
1305
+ "toolchain" ,
1306
+ "install" ,
1307
+ "nightly" ,
1308
+ "--no-self-update" ,
1309
+ ] ,
1310
+ ) ;
1257
1311
1258
1312
expect_stdout_ok ( config, & [ "rustc" , "--version" ] , "hash-s-2" ) ;
1259
1313
@@ -1275,7 +1329,13 @@ fn file_override_with_archive() {
1275
1329
expect_ok ( config, & [ "rustup" , "default" , "stable" ] ) ;
1276
1330
expect_ok (
1277
1331
config,
1278
- & [ "rustup" , "toolchain" , "install" , "nightly-2015-01-01" , "--no-self-update" ] ,
1332
+ & [
1333
+ "rustup" ,
1334
+ "toolchain" ,
1335
+ "install" ,
1336
+ "nightly-2015-01-01" ,
1337
+ "--no-self-update" ,
1338
+ ] ,
1279
1339
) ;
1280
1340
1281
1341
expect_stdout_ok ( config, & [ "rustc" , "--version" ] , "hash-s-2" ) ;
@@ -1292,8 +1352,20 @@ fn file_override_with_archive() {
1292
1352
fn directory_override_beats_file_override ( ) {
1293
1353
setup ( & |config| {
1294
1354
expect_ok ( config, & [ "rustup" , "default" , "stable" ] ) ;
1295
- expect_ok ( config, & [ "rustup" , "toolchain" , "install" , "beta" , "--no-self-update" ] ) ;
1296
- expect_ok ( config, & [ "rustup" , "toolchain" , "install" , "nightly" , "--no-self-update" ] ) ;
1355
+ expect_ok (
1356
+ config,
1357
+ & [ "rustup" , "toolchain" , "install" , "beta" , "--no-self-update" ] ,
1358
+ ) ;
1359
+ expect_ok (
1360
+ config,
1361
+ & [
1362
+ "rustup" ,
1363
+ "toolchain" ,
1364
+ "install" ,
1365
+ "nightly" ,
1366
+ "--no-self-update" ,
1367
+ ] ,
1368
+ ) ;
1297
1369
1298
1370
expect_ok ( config, & [ "rustup" , "override" , "set" , "beta" ] ) ;
1299
1371
expect_stdout_ok ( config, & [ "rustc" , "--version" ] , "hash-b-2" ) ;
@@ -1310,8 +1382,20 @@ fn directory_override_beats_file_override() {
1310
1382
fn close_file_override_beats_far_directory_override ( ) {
1311
1383
setup ( & |config| {
1312
1384
expect_ok ( config, & [ "rustup" , "default" , "stable" ] ) ;
1313
- expect_ok ( config, & [ "rustup" , "toolchain" , "install" , "beta" , "--no-self-update" ] ) ;
1314
- expect_ok ( config, & [ "rustup" , "toolchain" , "install" , "nightly" , "--no-self-update" ] ) ;
1385
+ expect_ok (
1386
+ config,
1387
+ & [ "rustup" , "toolchain" , "install" , "beta" , "--no-self-update" ] ,
1388
+ ) ;
1389
+ expect_ok (
1390
+ config,
1391
+ & [
1392
+ "rustup" ,
1393
+ "toolchain" ,
1394
+ "install" ,
1395
+ "nightly" ,
1396
+ "--no-self-update" ,
1397
+ ] ,
1398
+ ) ;
1315
1399
1316
1400
expect_ok ( config, & [ "rustup" , "override" , "set" , "beta" ] ) ;
1317
1401
expect_stdout_ok ( config, & [ "rustc" , "--version" ] , "hash-b-2" ) ;
@@ -1334,7 +1418,10 @@ fn close_file_override_beats_far_directory_override() {
1334
1418
fn directory_override_doesnt_need_to_exist_unless_it_is_selected ( ) {
1335
1419
setup ( & |config| {
1336
1420
expect_ok ( config, & [ "rustup" , "default" , "stable" ] ) ;
1337
- expect_ok ( config, & [ "rustup" , "toolchain" , "install" , "beta" , "--no-self-update" ] ) ;
1421
+ expect_ok (
1422
+ config,
1423
+ & [ "rustup" , "toolchain" , "install" , "beta" , "--no-self-update" ] ,
1424
+ ) ;
1338
1425
// not installing nightly
1339
1426
1340
1427
expect_ok ( config, & [ "rustup" , "override" , "set" , "beta" ] ) ;
@@ -1352,8 +1439,20 @@ fn directory_override_doesnt_need_to_exist_unless_it_is_selected() {
1352
1439
fn env_override_beats_file_override ( ) {
1353
1440
setup ( & |config| {
1354
1441
expect_ok ( config, & [ "rustup" , "default" , "stable" ] ) ;
1355
- expect_ok ( config, & [ "rustup" , "toolchain" , "install" , "beta" , "--no-self-update" ] ) ;
1356
- expect_ok ( config, & [ "rustup" , "toolchain" , "install" , "nightly" , "--no-self-update" ] ) ;
1442
+ expect_ok (
1443
+ config,
1444
+ & [ "rustup" , "toolchain" , "install" , "beta" , "--no-self-update" ] ,
1445
+ ) ;
1446
+ expect_ok (
1447
+ config,
1448
+ & [
1449
+ "rustup" ,
1450
+ "toolchain" ,
1451
+ "install" ,
1452
+ "nightly" ,
1453
+ "--no-self-update" ,
1454
+ ] ,
1455
+ ) ;
1357
1456
1358
1457
let cwd = config. current_dir ( ) ;
1359
1458
let toolchain_file = cwd. join ( "rust-toolchain" ) ;
@@ -1372,8 +1471,20 @@ fn env_override_beats_file_override() {
1372
1471
fn plus_override_beats_file_override ( ) {
1373
1472
setup ( & |config| {
1374
1473
expect_ok ( config, & [ "rustup" , "default" , "stable" ] ) ;
1375
- expect_ok ( config, & [ "rustup" , "toolchain" , "install" , "beta" , "--no-self-update" ] ) ;
1376
- expect_ok ( config, & [ "rustup" , "toolchain" , "install" , "nightly" , "--no-self-update" ] ) ;
1474
+ expect_ok (
1475
+ config,
1476
+ & [ "rustup" , "toolchain" , "install" , "beta" , "--no-self-update" ] ,
1477
+ ) ;
1478
+ expect_ok (
1479
+ config,
1480
+ & [
1481
+ "rustup" ,
1482
+ "toolchain" ,
1483
+ "install" ,
1484
+ "nightly" ,
1485
+ "--no-self-update" ,
1486
+ ] ,
1487
+ ) ;
1377
1488
1378
1489
let cwd = config. current_dir ( ) ;
1379
1490
let toolchain_file = cwd. join ( "rust-toolchain" ) ;
@@ -1417,7 +1528,16 @@ fn file_override_with_target_info() {
1417
1528
fn docs_with_path ( ) {
1418
1529
setup ( & |config| {
1419
1530
expect_ok ( config, & [ "rustup" , "default" , "stable" ] ) ;
1420
- expect_ok ( config, & [ "rustup" , "toolchain" , "install" , "nightly" , "--no-self-update" ] ) ;
1531
+ expect_ok (
1532
+ config,
1533
+ & [
1534
+ "rustup" ,
1535
+ "toolchain" ,
1536
+ "install" ,
1537
+ "nightly" ,
1538
+ "--no-self-update" ,
1539
+ ] ,
1540
+ ) ;
1421
1541
1422
1542
let mut cmd = clitools:: cmd ( config, "rustup" , & [ "doc" , "--path" ] ) ;
1423
1543
clitools:: env ( config, & mut cmd) ;
0 commit comments