@@ -46,8 +46,8 @@ fn prove_from_execution_output() {
46
46
. assert ( )
47
47
. success ( )
48
48
. stdout_matches ( indoc ! { r#"
49
- [..]soundness of proof is not yet guaranteed by Stwo, use at your own risk
50
49
[..]Proving hello
50
+ warn: soundness of proof is not yet guaranteed by Stwo, use at your own risk
51
51
Saving proof to: target/execute/hello/execution1/proof/proof.json
52
52
"# } ) ;
53
53
@@ -127,8 +127,8 @@ fn prove_fails_when_execution_output_not_found() {
127
127
. assert ( )
128
128
. failure ( ) ,
129
129
indoc ! { r#"
130
- [..]soundness of proof is not yet guaranteed by Stwo, use at your own risk
131
130
[..]Proving hello
131
+ warn: soundness of proof is not yet guaranteed by Stwo, use at your own risk
132
132
error: execution directory not found: [..]/target/execute/hello/execution1
133
133
help: make sure to run `scarb execute` first
134
134
and then run `scarb prove` with correct execution ID
@@ -142,6 +142,7 @@ fn prove_fails_when_execution_output_not_found() {
142
142
fn prove_fails_when_cairo_pie_output ( ) {
143
143
let t = build_executable_project ( ) ;
144
144
145
+ // First create a cairo pie output
145
146
Scarb :: quick_snapbox ( )
146
147
. arg ( "execute" )
147
148
. arg ( "--target=bootloader" )
@@ -153,6 +154,7 @@ fn prove_fails_when_cairo_pie_output() {
153
154
t. child ( "target/execute/hello/execution1/cairo_pie.zip" )
154
155
. assert ( predicates:: path:: exists ( ) ) ;
155
156
157
+ // Then try to prove it
156
158
output_assert (
157
159
Scarb :: quick_snapbox ( )
158
160
. arg ( "prove" )
@@ -161,14 +163,14 @@ fn prove_fails_when_cairo_pie_output() {
161
163
. assert ( )
162
164
. failure ( ) ,
163
165
indoc ! { r#"
164
- [..]soundness of proof is not yet guaranteed by Stwo, use at your own risk
165
166
[..]Proving hello
167
+ warn: soundness of proof is not yet guaranteed by Stwo, use at your own risk
166
168
error: proving cairo pie output is not supported: [..]/target/execute/hello/execution1/cairo_pie.zip
167
169
help: run `scarb execute --output=standard` first
168
170
and then run `scarb prove` with correct execution ID
169
171
170
172
"# } ,
171
- )
173
+ ) ;
172
174
}
173
175
174
176
#[ test]
@@ -184,12 +186,12 @@ fn prove_with_execute() {
184
186
. assert ( )
185
187
. success ( )
186
188
. stdout_matches ( indoc ! { r#"
187
- [..]soundness of proof is not yet guaranteed by Stwo, use at your own risk
188
189
[..]Compiling hello v0.1.0 ([..])
189
190
[..]Finished `dev` profile target(s) in [..]
190
191
[..]Executing hello
191
192
Saving output to: target/execute/hello/execution1
192
193
[..]Proving hello
194
+ warn: soundness of proof is not yet guaranteed by Stwo, use at your own risk
193
195
Saving proof to: target/execute/hello/execution1/proof/proof.json
194
196
"# } ) ;
195
197
0 commit comments