Skip to content

Commit 390cbe8

Browse files
committed
test(cli_misc): bring back missing assertions
1 parent 5cc2286 commit 390cbe8

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

tests/suite/cli_misc.rs

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1393,10 +1393,27 @@ async fn override_by_toolchain_on_the_command_line() {
13931393
13941394
"#]])
13951395
.is_ok();
1396+
cx.config
1397+
.expect(["rustup", "+nightly", "which", "rustc"])
1398+
.await
1399+
.with_stdout(snapbox::str![[r#"
1400+
[..]/toolchains/nightly-[HOST_TRIPLE]/bin/rustc[EXE]
1401+
1402+
"#]])
1403+
.is_ok();
1404+
13961405
cx.config
13971406
.expect(["rustup", "default", "nightly"])
13981407
.await
13991408
.is_ok();
1409+
cx.config
1410+
.expect(["rustup", "+stable", "which", "rustc"])
1411+
.await
1412+
.with_stdout(snapbox::str![[r#"
1413+
[..]/toolchains/stable-[HOST_TRIPLE]/bin/rustc[EXE]
1414+
1415+
"#]])
1416+
.is_ok();
14001417
cx.config
14011418
.expect(["rustup", "+nightly", "which", "rustc"])
14021419
.await

0 commit comments

Comments
 (0)