File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,11 @@ fn main() -> Result<()> {
13
13
let args = Args :: test ( ) ?;
14
14
config. with_args ( & args) ;
15
15
16
+ if let Ok ( target) = std:: env:: var ( "UITEST_TEST_TARGET" ) {
17
+ config. target = Some ( target) ;
18
+ config. output_conflict_handling = OutputConflictHandling :: Ignore ;
19
+ }
20
+
16
21
config. program . args = vec ! [
17
22
"test" . into( ) ,
18
23
"--color" . into( ) ,
@@ -82,6 +87,11 @@ fn main() -> Result<()> {
82
87
config. filter ( "program not found" , "No such file or directory" ) ;
83
88
config. filter ( " \\ (os error [0-9]+\\ )" , "" ) ;
84
89
config. filter ( "note: rustc 1\\ ..*" , "" ) ;
90
+ // Cross compilation paths contain an additional target directory name
91
+ config. stderr_filter (
92
+ "(/target/ui/tests/integrations/[^/]+).*debug/deps" ,
93
+ "$1/debug/deps" ,
94
+ ) ;
85
95
86
96
let text = ui_test:: status_emitter:: Text :: from ( args. format ) ;
87
97
You can’t perform that action at this time.
0 commit comments