@@ -100,7 +100,7 @@ fn update_all_no_update_whitespace() {
100100 & [ "rustup" , "update" , "nightly" , "--no-self-update" ] ,
101101 for_host ! (
102102 r"
103- nightly-{} installed - 1.3.0 (hash-n -2)
103+ nightly-{} installed - 1.3.0 (hash-nightly -2)
104104
105105"
106106 ) ,
@@ -197,7 +197,7 @@ fn multi_host_smoke_test() {
197197 clitools:: setup ( Scenario :: MultiHost , & |config| {
198198 let toolchain = format ! ( "nightly-{}" , clitools:: MULTI_ARCH1 ) ;
199199 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
201201 } ) ;
202202}
203203
@@ -219,13 +219,13 @@ fn custom_toolchain_cargo_fallback_proxy() {
219219 expect_ok ( config, & [ "rustup" , "default" , "mytoolchain" ] ) ;
220220
221221 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 " ) ;
223223
224224 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 " ) ;
226226
227227 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" ) ;
229229 } ) ;
230230}
231231
@@ -250,21 +250,21 @@ fn custom_toolchain_cargo_fallback_run() {
250250 expect_stdout_ok (
251251 config,
252252 & [ "rustup" , "run" , "mytoolchain" , "cargo" , "--version" ] ,
253- "hash-s-2 " ,
253+ "hash-stable-1.1.0 " ,
254254 ) ;
255255
256256 expect_ok ( config, & [ "rustup" , "update" , "beta" , "--no-self-update" ] ) ;
257257 expect_stdout_ok (
258258 config,
259259 & [ "rustup" , "run" , "mytoolchain" , "cargo" , "--version" ] ,
260- "hash-b-2 " ,
260+ "hash-beta-1.2.0 " ,
261261 ) ;
262262
263263 expect_ok ( config, & [ "rustup" , "update" , "nightly" , "--no-self-update" ] ) ;
264264 expect_stdout_ok (
265265 config,
266266 & [ "rustup" , "run" , "mytoolchain" , "cargo" , "--version" ] ,
267- "hash-n -2" ,
267+ "hash-nightly -2" ,
268268 ) ;
269269 } ) ;
270270}
@@ -738,13 +738,13 @@ fn update_unavailable_rustc() {
738738 set_current_dist_date ( config, "2015-01-01" ) ;
739739 expect_ok ( config, & [ "rustup" , "default" , "nightly" ] ) ;
740740
741- expect_stdout_ok ( config, & [ "rustc" , "--version" ] , "hash-n -1" ) ;
741+ expect_stdout_ok ( config, & [ "rustc" , "--version" ] , "hash-nightly -1" ) ;
742742
743743 // latest nightly is unavailable
744744 set_current_dist_date ( config, "2015-01-02" ) ;
745745 // update should do nothing
746746 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" ) ;
748748 } ) ;
749749}
750750
@@ -754,7 +754,7 @@ fn update_nightly_even_with_incompat() {
754754 set_current_dist_date ( config, "2019-09-12" ) ;
755755 expect_ok ( config, & [ "rustup" , "default" , "nightly" ] ) ;
756756
757- expect_stdout_ok ( config, & [ "rustc" , "--version" ] , "hash-n -1" ) ;
757+ expect_stdout_ok ( config, & [ "rustc" , "--version" ] , "hash-nightly -1" ) ;
758758 expect_ok ( config, & [ "rustup" , "component" , "add" , "rls" ] ) ;
759759 expect_component_executable ( config, "rls" ) ;
760760
@@ -764,7 +764,7 @@ fn update_nightly_even_with_incompat() {
764764 expect_component_executable ( config, "rls" ) ;
765765 // update should bring us to latest nightly that does
766766 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" ) ;
768768 expect_component_executable ( config, "rls" ) ;
769769 } ) ;
770770}
@@ -775,14 +775,14 @@ fn nightly_backtrack_skips_missing() {
775775 set_current_dist_date ( config, "2015-01-01" ) ;
776776 expect_ok ( config, & [ "rustup" , "default" , "nightly" ] ) ;
777777
778- expect_stdout_ok ( config, & [ "rustc" , "--version" ] , "hash-n -1" ) ;
778+ expect_stdout_ok ( config, & [ "rustc" , "--version" ] , "hash-nightly -1" ) ;
779779
780780 // nightly is missing on latest
781781 set_current_dist_date ( config, "2015-01-02" ) ;
782782
783783 // update should not change nightly, and should not error
784784 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" ) ;
786786 } ) ;
787787}
788788
0 commit comments