Make zombienet tests native friendly (#6588)

* Make zombienet tests native friendly

* Update zombienet_tests/README.md

Co-authored-by: Bastian Köcher <info@kchr.de>

* Get rid of `{{ZOMBIENET_NATIVE_BINARY_PREFIX}}`

* Remove pointless changes

* add set_env helper and doc in readme

* changes from feedback

---------

Co-authored-by: Bastian Köcher <info@kchr.de>
Co-authored-by: Javier Viola <javier@parity.io>
This commit is contained in:
Tsvetomir Dimitrov
2023-01-28 14:00:45 +02:00
committed by GitHub
parent c251912652
commit 70852e9400
7 changed files with 69 additions and 7 deletions
+20
View File
@@ -0,0 +1,20 @@
pathprepend() {
for ((i=$#; i>0; i--));
do
ARG="$@[$i]"
if [ -d "$ARG" ] && [[ ":$PATH:" != *":$ARG:"* ]]; then
PATH="$ARG${PATH:+":$PATH"}"
fi
done
}
# paths are prepend in order, so you can manage with version will run
# by the order of this array
CUSTOM_PATHS=(
"~/polkadot/target/release"
"~/polkadot/target/testnet"
"~/cumulus/target/release"
)
pathprepend $CUSTOM_PATHS
export PATH=$PATH