From 7cc592f987ebf4d30b387c672d1f33bd4889aa99 Mon Sep 17 00:00:00 2001 From: Maksym H Date: Mon, 21 Oct 2024 13:41:42 +0100 Subject: [PATCH] Update cmd.py --- .github/scripts/cmd/cmd.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/.github/scripts/cmd/cmd.py b/.github/scripts/cmd/cmd.py index 5eb489f3340f..805ff42adcae 100755 --- a/.github/scripts/cmd/cmd.py +++ b/.github/scripts/cmd/cmd.py @@ -285,8 +285,7 @@ def main(): f"--no-median-slopes " \ f"--all " \ f"--list " \ - f"--runtime=target/{profile}/wbuild/{runtime['package']}/{runtime['package'].replace('-', '_')}.wasm " \ - f"{runtime['bench_flags']}" + f"--chain={runtime['name']}" ).read() raw_pallets = output.strip().split('\n') @@ -358,7 +357,7 @@ def main(): print(f'-- benchmarking {pallet} in {runtime} into {output_path}') cmd = f"target/{profile}/{config['old_bin']} benchmark pallet " \ f"--extrinsic=* " \ - f"--runtime=target/{profile}/wbuild/{config['package']}/{config['package'].replace('-', '_')}.wasm " \ + f"--chain={config['name']} " \ f"--pallet={pallet} " \ f"--header={header_path} " \ f"--output={output_path} " \ @@ -367,8 +366,7 @@ def main(): f"--repeat=20 " \ f"--heap-pages=4096 " \ f"{f'--template={template} ' if template else ''}" \ - f"--no-storage-info --no-min-squares --no-median-slopes " \ - f"{config['bench_flags']}" + f"--no-storage-info --no-min-squares --no-median-slopes " print(f'-- Running: {cmd} \n') status = os.system(cmd)