Skip to content
Snippets Groups Projects
Commit bcebd39e authored by Mara Broda's avatar Mara Broda :coffee: Committed by GitHub
Browse files

[ci] benchmarks: suppress wrong exit code (#5344)

* [ci] benchmarks: suppress wrong exit code

The script uses '!' to prevent set -e failures,
however a $? of `0` becomes exit code 1 if it is the last command ran.

This `true` makes sure that $? is 0 when we reach the end,
instead of carrying over a failure which would otherwise cause
the whole CI job to abort.

* add explanation comment
parent 07d2985f
Branches
No related merge requests found
......@@ -46,3 +46,9 @@ rm "${runtime}_pallets"
--weight-path="runtime/${runtime}/constants/src/weights/" \
--warmup=10 \
--repeat=100
# This true makes sure that $? is 0 instead of
# carrying over a failure which would otherwise cause
# the whole CI job to abort.
true
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