File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed
src/tools/compiletest/src Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -869,17 +869,23 @@ impl<'test> TestCx<'test> {
869
869
870
870
let adb_path = & self . config . adb_path ;
871
871
872
- Command :: new ( adb_path)
872
+ let status = Command :: new ( adb_path)
873
873
. arg ( "push" )
874
874
. arg ( & exe_file)
875
875
. arg ( & self . config . adb_test_dir )
876
876
. status ( )
877
877
. unwrap_or_else ( |_| panic ! ( "failed to exec `{:?}`" , adb_path) ) ;
878
+ if !status. success ( ) {
879
+ panic ! ( "Program failed `{:}`" , adb_path) ;
880
+ }
878
881
879
- Command :: new ( adb_path)
882
+ let status = Command :: new ( adb_path)
880
883
. args ( & [ "forward" , "tcp:5039" , "tcp:5039" ] )
881
884
. status ( )
882
885
. unwrap_or_else ( |_| panic ! ( "failed to exec `{:?}`" , adb_path) ) ;
886
+ if !status. success ( ) {
887
+ panic ! ( "Program failed `{:}`" , adb_path) ;
888
+ }
883
889
884
890
let adb_arg = format ! (
885
891
"export LD_LIBRARY_PATH={}; \
You can’t perform that action at this time.
0 commit comments