@@ -754,6 +754,7 @@ async fn show_multiple_targets() {
754754 "rustup" ,
755755 "default" ,
756756 & format ! ( "nightly-{}" , clitools:: MULTI_ARCH1 ) ,
757+ "--force-non-host" ,
757758 ] )
758759 . await ;
759760 cx. config
@@ -801,6 +802,7 @@ async fn show_multiple_toolchains_and_targets() {
801802 "rustup" ,
802803 "default" ,
803804 & format ! ( "nightly-{}" , clitools:: MULTI_ARCH1 ) ,
805+ "--force-non-host" ,
804806 ] )
805807 . await ;
806808 cx. config
@@ -810,6 +812,7 @@ async fn show_multiple_toolchains_and_targets() {
810812 . expect_ok ( & [
811813 "rustup" ,
812814 "update" ,
815+ "--force-non-host" ,
813816 & format ! ( "stable-{}" , clitools:: MULTI_ARCH1 ) ,
814817 ] )
815818 . await ;
@@ -2731,29 +2734,33 @@ async fn check_unix_settings_fallback() {
27312734}
27322735
27332736#[ tokio:: test]
2734- async fn warn_on_unmatch_build ( ) {
2737+ async fn deny_incompatible_toolchain_install ( ) {
27352738 let cx = CliTestContext :: new ( Scenario :: MultiHost ) . await ;
27362739 let arch = clitools:: MULTI_ARCH1 ;
2737- cx. config . expect_stderr_ok (
2738- & [ "rustup" , "toolchain" , "install" , & format ! ( "nightly-{arch}" ) ] ,
2739- & format ! (
2740- r"warn: toolchain 'nightly-{arch}' may not be able to run on this system.
2741- warn: If you meant to build software to target that platform, perhaps try `rustup target add {arch}` instead?" ,
2742- ) ,
2743- ) . await ;
2740+ cx. config
2741+ . expect_err (
2742+ & [ "rustup" , "toolchain" , "install" , & format ! ( "nightly-{arch}" ) ] ,
2743+ & format ! (
2744+ "error: toolchain 'nightly-{arch}' may not be able to run on this system
2745+ note: to build software for that platform, try `rustup target add {arch}` instead" ,
2746+ ) ,
2747+ )
2748+ . await ;
27442749}
27452750
27462751#[ tokio:: test]
2747- async fn warn_on_unmatch_build_default ( ) {
2752+ async fn deny_incompatible_toolchain_default ( ) {
27482753 let cx = CliTestContext :: new ( Scenario :: MultiHost ) . await ;
27492754 let arch = clitools:: MULTI_ARCH1 ;
2750- cx. config . expect_stderr_ok (
2751- & [ "rustup" , "default" , & format ! ( "nightly-{arch}" ) ] ,
2752- & format ! (
2753- r"warn: toolchain 'nightly-{arch}' may not be able to run on this system.
2754- warn: If you meant to build software to target that platform, perhaps try `rustup target add {arch}` instead?" ,
2755- ) ,
2756- ) . await ;
2755+ cx. config
2756+ . expect_err (
2757+ & [ "rustup" , "default" , & format ! ( "nightly-{arch}" ) ] ,
2758+ & format ! (
2759+ "error: toolchain 'nightly-{arch}' may not be able to run on this system
2760+ note: to build software for that platform, try `rustup target add {arch}` instead" ,
2761+ ) ,
2762+ )
2763+ . await ;
27572764}
27582765
27592766#[ tokio:: test]
0 commit comments