mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-31 11:01:01 +00:00
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:
committed by
GitHub
parent
c251912652
commit
70852e9400
@@ -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
|
||||
Reference in New Issue
Block a user