@@ -100,7 +100,7 @@ fn update_all_no_update_whitespace() {
100
100
& [ "rustup" , "update" , "nightly" , "--no-self-update" ] ,
101
101
for_host ! (
102
102
r"
103
- nightly-{} installed - 1.3.0 (hash-n -2)
103
+ nightly-{} installed - 1.3.0 (hash-nightly -2)
104
104
105
105
"
106
106
) ,
@@ -197,7 +197,7 @@ fn multi_host_smoke_test() {
197
197
clitools:: setup ( Scenario :: MultiHost , & |config| {
198
198
let toolchain = format ! ( "nightly-{}" , clitools:: MULTI_ARCH1 ) ;
199
199
expect_ok ( config, & [ "rustup" , "default" , & toolchain] ) ;
200
- expect_stdout_ok ( config, & [ "rustc" , "--version" ] , "xxxx-n -2" ) ; // cross-host mocks have their own versions
200
+ expect_stdout_ok ( config, & [ "rustc" , "--version" ] , "xxxx-nightly -2" ) ; // cross-host mocks have their own versions
201
201
} ) ;
202
202
}
203
203
@@ -219,13 +219,13 @@ fn custom_toolchain_cargo_fallback_proxy() {
219
219
expect_ok ( config, & [ "rustup" , "default" , "mytoolchain" ] ) ;
220
220
221
221
expect_ok ( config, & [ "rustup" , "update" , "stable" , "--no-self-update" ] ) ;
222
- expect_stdout_ok ( config, & [ "cargo" , "--version" ] , "hash-s-2 " ) ;
222
+ expect_stdout_ok ( config, & [ "cargo" , "--version" ] , "hash-stable-1.1.0 " ) ;
223
223
224
224
expect_ok ( config, & [ "rustup" , "update" , "beta" , "--no-self-update" ] ) ;
225
- expect_stdout_ok ( config, & [ "cargo" , "--version" ] , "hash-b-2 " ) ;
225
+ expect_stdout_ok ( config, & [ "cargo" , "--version" ] , "hash-beta-1.2.0 " ) ;
226
226
227
227
expect_ok ( config, & [ "rustup" , "update" , "nightly" , "--no-self-update" ] ) ;
228
- expect_stdout_ok ( config, & [ "cargo" , "--version" ] , "hash-n -2" ) ;
228
+ expect_stdout_ok ( config, & [ "cargo" , "--version" ] , "hash-nightly -2" ) ;
229
229
} ) ;
230
230
}
231
231
@@ -250,21 +250,21 @@ fn custom_toolchain_cargo_fallback_run() {
250
250
expect_stdout_ok (
251
251
config,
252
252
& [ "rustup" , "run" , "mytoolchain" , "cargo" , "--version" ] ,
253
- "hash-s-2 " ,
253
+ "hash-stable-1.1.0 " ,
254
254
) ;
255
255
256
256
expect_ok ( config, & [ "rustup" , "update" , "beta" , "--no-self-update" ] ) ;
257
257
expect_stdout_ok (
258
258
config,
259
259
& [ "rustup" , "run" , "mytoolchain" , "cargo" , "--version" ] ,
260
- "hash-b-2 " ,
260
+ "hash-beta-1.2.0 " ,
261
261
) ;
262
262
263
263
expect_ok ( config, & [ "rustup" , "update" , "nightly" , "--no-self-update" ] ) ;
264
264
expect_stdout_ok (
265
265
config,
266
266
& [ "rustup" , "run" , "mytoolchain" , "cargo" , "--version" ] ,
267
- "hash-n -2" ,
267
+ "hash-nightly -2" ,
268
268
) ;
269
269
} ) ;
270
270
}
@@ -738,13 +738,13 @@ fn update_unavailable_rustc() {
738
738
set_current_dist_date ( config, "2015-01-01" ) ;
739
739
expect_ok ( config, & [ "rustup" , "default" , "nightly" ] ) ;
740
740
741
- expect_stdout_ok ( config, & [ "rustc" , "--version" ] , "hash-n -1" ) ;
741
+ expect_stdout_ok ( config, & [ "rustc" , "--version" ] , "hash-nightly -1" ) ;
742
742
743
743
// latest nightly is unavailable
744
744
set_current_dist_date ( config, "2015-01-02" ) ;
745
745
// update should do nothing
746
746
expect_ok ( config, & [ "rustup" , "update" , "nightly" , "--no-self-update" ] ) ;
747
- expect_stdout_ok ( config, & [ "rustc" , "--version" ] , "hash-n -1" ) ;
747
+ expect_stdout_ok ( config, & [ "rustc" , "--version" ] , "hash-nightly -1" ) ;
748
748
} ) ;
749
749
}
750
750
@@ -754,7 +754,7 @@ fn update_nightly_even_with_incompat() {
754
754
set_current_dist_date ( config, "2019-09-12" ) ;
755
755
expect_ok ( config, & [ "rustup" , "default" , "nightly" ] ) ;
756
756
757
- expect_stdout_ok ( config, & [ "rustc" , "--version" ] , "hash-n -1" ) ;
757
+ expect_stdout_ok ( config, & [ "rustc" , "--version" ] , "hash-nightly -1" ) ;
758
758
expect_ok ( config, & [ "rustup" , "component" , "add" , "rls" ] ) ;
759
759
expect_component_executable ( config, "rls" ) ;
760
760
@@ -764,7 +764,7 @@ fn update_nightly_even_with_incompat() {
764
764
expect_component_executable ( config, "rls" ) ;
765
765
// update should bring us to latest nightly that does
766
766
expect_ok ( config, & [ "rustup" , "update" , "nightly" , "--no-self-update" ] ) ;
767
- expect_stdout_ok ( config, & [ "rustc" , "--version" ] , "hash-n -2" ) ;
767
+ expect_stdout_ok ( config, & [ "rustc" , "--version" ] , "hash-nightly -2" ) ;
768
768
expect_component_executable ( config, "rls" ) ;
769
769
} ) ;
770
770
}
@@ -775,14 +775,14 @@ fn nightly_backtrack_skips_missing() {
775
775
set_current_dist_date ( config, "2015-01-01" ) ;
776
776
expect_ok ( config, & [ "rustup" , "default" , "nightly" ] ) ;
777
777
778
- expect_stdout_ok ( config, & [ "rustc" , "--version" ] , "hash-n -1" ) ;
778
+ expect_stdout_ok ( config, & [ "rustc" , "--version" ] , "hash-nightly -1" ) ;
779
779
780
780
// nightly is missing on latest
781
781
set_current_dist_date ( config, "2015-01-02" ) ;
782
782
783
783
// update should not change nightly, and should not error
784
784
expect_ok ( config, & [ "rustup" , "update" , "nightly" , "--no-self-update" ] ) ;
785
- expect_stdout_ok ( config, & [ "rustc" , "--version" ] , "hash-n -1" ) ;
785
+ expect_stdout_ok ( config, & [ "rustc" , "--version" ] , "hash-nightly -1" ) ;
786
786
} ) ;
787
787
}
788
788
0 commit comments