Commit bd7ceb02 authored by Inphi's avatar Inphi Committed by GitHub

op-e2e: Check cannnon exit status in TestPrecompiles (#10701)

parent 1b9fd7a3
...@@ -155,6 +155,8 @@ func runCannon(t *testing.T, ctx context.Context, sys *op_e2e.System, inputs uti ...@@ -155,6 +155,8 @@ func runCannon(t *testing.T, ctx context.Context, sys *op_e2e.System, inputs uti
state, err := parseState(filepath.Join(proofsDir, "final.json.gz")) state, err := parseState(filepath.Join(proofsDir, "final.json.gz"))
require.NoError(t, err, "failed to parse state") require.NoError(t, err, "failed to parse state")
require.True(t, state.Exited, "cannon did not exit")
require.Zero(t, state.ExitCode, "cannon failed with exit code %d", state.ExitCode)
t.Logf("Completed in %d steps", state.Step) t.Logf("Completed in %d steps", state.Step)
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment