Files
pezkuwi-subxt/polkadot/zombienet_tests/misc/0002-download-polkadot-from-pr.sh
T
Javier Viola f209b31b48 Make downloads in parallel and give more time to complete (#1699)
Fix flaky test (e.g
https://gitlab.parity.io/parity/mirrors/polkadot-sdk/-/jobs/3787906).
Sometimes just timeout when trying to download the artifacts from ci.
This make the download in parallel and allow for more time to complete.

Thx!

cc: @michalkucharczyk
2023-09-25 15:46:36 -03:00

22 lines
462 B
Bash

#!/bin/bash
set -euxo pipefail
echo $@
CFG_DIR=/cfg
# add CFG_DIR as first `looking dir` to allow to overrides commands.
mkdir -p $CFG_DIR
export PATH=$CFG_DIR:$PATH
cd $CFG_DIR
# see 0002-upgrade-node.zndsl to view the args.
curl -L -O $1/polkadot &
curl -L -O $1/polkadot-prepare-worker &
curl -L -O $1/polkadot-execute-worker &
wait
chmod +x $CFG_DIR/polkadot $CFG_DIR/polkadot-prepare-worker $CFG_DIR/polkadot-execute-worker
echo $(polkadot --version)