Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Commit

Permalink
[ci] fix pallet benchmark script (#5247)
Browse files Browse the repository at this point in the history
  • Loading branch information
coderobe committed Apr 8, 2022
1 parent d7d75ce commit 7c80381
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/run_benches_for_runtime.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ echo "[+] Running all benchmarks for $runtime"

cargo +nightly build --profile production --locked --features=runtime-benchmarks

./target/production/polkadot benchmark \
./target/production/polkadot benchmark pallet \
--chain "${runtime}-dev" \
--list |\
tail -n+2 |\
Expand All @@ -24,7 +24,7 @@ while read -r line; do
pallet="$(echo "$line" | cut -d' ' -f1)";
echo "Runtime: $runtime. Pallet: $pallet";
# '!' has the side effect of bypassing errexit / set -e
! ./target/production/polkadot benchmark \
! ./target/production/polkadot benchmark pallet \
--chain="${runtime}-dev" \
--steps=50 \
--repeat=20 \
Expand Down

0 comments on commit 7c80381

Please sign in to comment.