We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 7a90f08 + 4e301cc commit 8a38564Copy full SHA for 8a38564
tests/suite/cli_ui.rs
@@ -5,12 +5,16 @@ use rustup_macros::integration_test as test;
5
#[test]
6
fn rustup_ui_doc_text_tests() {
7
let t = trycmd::TestCases::new();
8
+ let home = tempfile::TempDir::new().unwrap();
9
let rustup_init = trycmd::cargo::cargo_bin("rustup-init");
10
let rustup = trycmd::cargo::cargo_bin("rustup");
11
// Copy rustup-init to rustup so that the tests can run it.
12
fs::copy(rustup_init, &rustup).unwrap();
13
t.register_bin("rustup", &rustup);
14
t.case("tests/suite/cli-ui/rustup/*.toml");
15
+ // once installed rustup asserts the presence of ~/.rustup/settings.toml if
16
+ // Config is instantiated.
17
+ t.env("HOME", home.path().to_string_lossy());
18
#[cfg(target_os = "windows")]
19
{
20
// On windows, we don't have man command, so skip the test.
0 commit comments