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

Make zombienet tests native friendly #6588

Merged
merged 7 commits into from
Jan 28, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
changes from feedback
  • Loading branch information
pepoviola committed Jan 26, 2023
commit eaac8813143ffbcf0e27e040a6143d26a4cc17e5
8 changes: 4 additions & 4 deletions zombienet_tests/.set_env
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ pathprepend() {
# paths are prepend in order, so you can manage with version will run
# by the order of this array
CUSTOM_PATHS=(
"<path>/polkadot/target/release"
"<path>/polkadot/target/testnet"
"<path>/cumulus/target/release"
"~/polkadot/target/release"
"~/polkadot/target/testnet"
"~/cumulus/target/release"
)

pathprepend $CUSTOM_PATHS
export PATH=$PATH
export PATH=$PATH
8 changes: 4 additions & 4 deletions zombienet_tests/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,17 +36,17 @@ $ cat .set_env
(...)
# by the order of this array
CUSTOM_PATHS=(
"<path>/polkadot/target/release"
"<path>/polkadot/target/testnet"
"<path>/cumulus/target/release"
"~/polkadot/target/release"
"~/polkadot/target/testnet"
"~/cumulus/target/release"
)
(...)

source .set_env
```

Then you have your `PATH` customized and ready to run `zombienet`.
**NOTE**: You should need to do this ones per terminal session, since we are patching the `PATH` and re-exporting.
**NOTE**: You should need to do this ones per terminal session, since we are patching the `PATH` and re-exporting. **Or** you can also `source` this file in your `.bashrc` file to get executed automatically in each new session.

Example:

Expand Down