File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -71,15 +71,20 @@ await $`CORE_BPF_PROGRAM_ID=${getProgramId('program')} \
7171 --lib --release --target x86_64-unknown-linux-gnu --features core-bpf` ;
7272await $ `mv ${ solFuzzAgaveTargetPath } ${ testTargetPathCoreBpf } ` ;
7373
74+ // Remove any test results if they exist.
75+ await $ `rm -rf test_results` ;
76+
7477// Run the tests.
7578await $ `source test_suite_env/bin/activate && \
7679 solana-test-suite run-tests \
7780 -i ${ fixturesPath } -s ${ testTargetPathBuiltin } -t ${ testTargetPathCoreBpf } ` ;
7881
7982// Assert conformance.
8083// There should be no fixtures in the `failed_protobufs` directory.
81- if ( fs . readdirSync ( 'test_results/failed_protobufs' ) . length > 0 ) {
82- throw new Error ( `Error: mismatches detected.` ) ;
83- } else {
84- console . log ( 'All tests passed.' ) ;
84+ if ( fs . existsSync ( 'test_results/failed_protobufs' ) ) {
85+ if ( fs . readdirSync ( 'test_results/failed_protobufs' ) . length > 0 ) {
86+ throw new Error ( `Error: mismatches detected.` ) ;
87+ }
8588}
89+
90+ console . log ( 'All tests passed.' ) ;
You can’t perform that action at this time.
0 commit comments