File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -5,12 +5,16 @@ use rustup_macros::integration_test as test;
5
5
#[ test]
6
6
fn rustup_ui_doc_text_tests ( ) {
7
7
let t = trycmd:: TestCases :: new ( ) ;
8
+ let home = tempfile:: TempDir :: new ( ) . unwrap ( ) ;
8
9
let rustup_init = trycmd:: cargo:: cargo_bin ( "rustup-init" ) ;
9
10
let rustup = trycmd:: cargo:: cargo_bin ( "rustup" ) ;
10
11
// Copy rustup-init to rustup so that the tests can run it.
11
12
fs:: copy ( rustup_init, & rustup) . unwrap ( ) ;
12
13
t. register_bin ( "rustup" , & rustup) ;
13
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 ( ) ) ;
14
18
#[ cfg( target_os = "windows" ) ]
15
19
{
16
20
// On windows, we don't have man command, so skip the test.
You can’t perform that action at this time.
0 commit comments