File tree 2 files changed +1
-11
lines changed
2 files changed +1
-11
lines changed Original file line number Diff line number Diff line change @@ -102,16 +102,6 @@ struct ProductMetadata {
102
102
impl PythSimulator {
103
103
/// Deploys the oracle program as upgradable
104
104
pub async fn new ( ) -> PythSimulator {
105
- let mut cmd = std:: process:: Command :: new ( "cargo" ) ;
106
- cmd. arg ( "build-bpf" ) ;
107
- let status = cmd. status ( ) . unwrap ( ) ;
108
-
109
- if !status. success ( ) {
110
- panic ! (
111
- "cargo-build-bpf did not exit with 0 (code {:?})" ,
112
- status. code( )
113
- ) ;
114
- }
115
105
let target_dir = concat ! ( env!( "CARGO_MANIFEST_DIR" ) , "/../../target" ) ;
116
106
let oracle_program_binary_path = PathBuf :: from ( target_dir) . join ( "deploy/pyth_oracle.so" ) ;
117
107
let mut bpf_data = read_file ( & oracle_program_binary_path) ;
Original file line number Diff line number Diff line change 20
20
cd " ${PYTH_DIR} "
21
21
22
22
# Re-run tests affected by features
23
- cargo test --locked
23
+ cargo- test-bpf
24
24
25
25
cargo-build-bpf -- --locked -Z build-std=std,panic_abort -Z build-std-features=panic_immediate_abort
26
26
sha256sum ./target/** /* .so
You can’t perform that action at this time.
0 commit comments