File tree Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -3,29 +3,33 @@ use std::process::Command;
33use std:: path:: { Path , PathBuf } ;
44
55fn main ( ) {
6- assert_eq ! ( env:: args_os( ) . len( ) , 2 ) ;
7- let test = PathBuf :: from ( env:: args_os ( ) . nth ( 1 ) . unwrap ( ) ) ;
6+ let args = env:: args_os ( )
7+ . skip ( 1 )
8+ . filter ( |arg| arg != "--quiet" )
9+ . collect :: < Vec < _ > > ( ) ;
10+ assert_eq ! ( args. len( ) , 1 ) ;
11+ let test = PathBuf :: from ( & args[ 0 ] ) ;
812 let dst = Path :: new ( "/data/local/tmp" ) . join ( test. file_name ( ) . unwrap ( ) ) ;
913
1014 let status = Command :: new ( "adb" )
1115 . arg ( "wait-for-device" )
1216 . status ( )
13- . expect ( "failed to run rumprun-bake " ) ;
17+ . expect ( "failed to run: adb wait-for-device " ) ;
1418 assert ! ( status. success( ) ) ;
1519
1620 let status = Command :: new ( "adb" )
1721 . arg ( "push" )
1822 . arg ( & test)
1923 . arg ( & dst)
2024 . status ( )
21- . expect ( "failed to run rumprun-bake " ) ;
25+ . expect ( "failed to run: adb pushr " ) ;
2226 assert ! ( status. success( ) ) ;
2327
2428 let output = Command :: new ( "adb" )
2529 . arg ( "shell" )
2630 . arg ( & dst)
2731 . output ( )
28- . expect ( "failed to run rumprun-bake " ) ;
32+ . expect ( "failed to run: adb shell " ) ;
2933 assert ! ( status. success( ) ) ;
3034
3135 println ! ( "status: {}\n stdout ---\n {}\n stderr ---\n {}" ,
You can’t perform that action at this time.
0 commit comments