Skip to content

Commit

Permalink
Add test for dumb terminal
Browse files Browse the repository at this point in the history
  • Loading branch information
tesuji committed Apr 13, 2019
1 parent d587c8a commit e973520
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tests/cli-misc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,17 @@ fn update_works_without_term() {
});
}

// Issue #1738
#[test]
fn show_works_with_dumb_term() {
setup(&|config| {
let mut cmd = clitools::cmd(config, "rustup", &["show"]);
clitools::env(config, &mut cmd);
cmd.env("TERM", "dumb");
assert!(cmd.spawn().unwrap().wait().unwrap().success());
});
}

// Issue #140
// Don't panic when `target`, `update` etc. are called without subcommands.
#[test]
Expand Down

0 comments on commit e973520

Please sign in to comment.