File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 36
36
# Integration tests are disabled on Windows as they take *way* too
37
37
# long to pull the Docker image
38
38
- os : windows-latest
39
- test_flags : --skip buildtest --skip integration
39
+ test_flags : --skip buildtest --skip integration --skip run_binary_with_same_name_as_file
40
40
steps :
41
41
- name : Checkout the source code
42
42
uses : actions/checkout@master
Original file line number Diff line number Diff line change 1
1
use failure:: Error ;
2
2
use rustwide:: cmd:: Command ;
3
+ use std:: fs;
3
4
4
5
mod utils;
5
6
6
7
#[ test]
7
8
fn run_binary_with_same_name_as_file ( ) -> Result < ( ) , Error > {
8
- use std :: fs ;
9
+ let workspace = crate :: utils :: init_workspace ( ) ? ;
9
10
10
11
let tmpdir = tempfile:: tempdir ( ) ?;
11
12
std:: env:: set_current_dir ( & tmpdir) ?;
12
13
fs:: write ( "true" , b"foobar" ) ?;
13
- let workspace = crate :: utils :: init_workspace ( ) ? ;
14
+
14
15
Command :: new ( & workspace, "true" ) . run ( ) ?;
15
16
16
17
Ok ( ( ) )
You can’t perform that action at this time.
0 commit comments