File tree Expand file tree Collapse file tree
crates/blockifier_test_utils/src Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -56,11 +56,17 @@ async fn download_cairo_package(version: &String) {
5656 format ! ( "https://github.com/starkware-libs/cairo/releases/download/v{version}/{filename}" ) ;
5757 let curl_command =
5858 Command :: new ( "curl" ) . args ( [ "-L" , & package_url] ) . stdout ( Stdio :: piped ( ) ) . spawn ( ) . unwrap ( ) ;
59- run_and_verify_output (
60- Command :: new ( "tar" )
61- . args ( [ "-xz" , "-C" , directory. to_str ( ) . unwrap ( ) ] )
62- . stdin ( Stdio :: from ( curl_command. stdout . unwrap ( ) ) ) ,
63- ) ;
59+ let tar_command = Command :: new ( "tar" )
60+ . args ( [ "-xz" , "-C" , directory. to_str ( ) . unwrap ( ) ] )
61+ . stdin ( Stdio :: from ( curl_command. stdout . unwrap ( ) ) )
62+ . spawn ( )
63+ . unwrap ( ) ;
64+
65+ let output = tar_command. wait_with_output ( ) . unwrap ( ) ;
66+ if !output. status . success ( ) {
67+ let stderr_output = String :: from_utf8 ( output. stderr ) . unwrap ( ) ;
68+ panic ! ( "{stderr_output}" ) ;
69+ }
6470 info ! ( "Done." ) ;
6571}
6672
You can’t perform that action at this time.
0 commit comments