Skip to content

Commit b5ac89a

Browse files
committed
made zombie-bite run from root dir not examples dir
1 parent 2e7160f commit b5ac89a

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

examples/justfile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,17 +154,22 @@ bulletin-solo-zombienet-start runtime="bulletin-polkadot-runtime":
154154
export PATH="~/local_bridge_testing/bin:$PATH"
155155
(cd .. && PATH="$HOME/local_bridge_testing/bin:$PATH" ./scripts/create_bulletin_westend_spec.sh)
156156

157+
# Run zombienet from root directory so relative paths in config work correctly
157158
ZOMBIENET_CONFIG=$(cd .. && pwd)/zombienet/bulletin-westend-local.toml
159+
cd ..
158160
POLKADOT_BINARY_PATH=$POLKADOT_BINARY_PATH \
159161
POLKADOT_PARACHAIN_BINARY_PATH=$POLKADOT_PARACHAIN_BINARY_PATH \
160162
$ZOMBIENET_BIN -p native spawn $ZOMBIENET_CONFIG > /tmp/zombienet.log 2>&1 &
163+
cd examples
161164
else # bulletin-polkadot-runtime
162165
echo " Setting up Polkadot runtime..."
163166
# Build the node binary (which will build the runtime as a dependency)
164167
cargo build --release -p polkadot-bulletin-chain
165168
BULLETIN_BINARY=$(cd .. && pwd)/target/release/polkadot-bulletin-chain
166169
ZOMBIENET_CONFIG=$(cd .. && pwd)/zombienet/bulletin-polkadot-local.toml
170+
cd ..
167171
POLKADOT_BULLETIN_BINARY_PATH=$BULLETIN_BINARY $ZOMBIENET_BIN -p native spawn $ZOMBIENET_CONFIG > /tmp/zombienet.log 2>&1 &
172+
cd examples
168173
fi
169174

170175
ZOMBIENET_PID=$!

scripts/create_bulletin_westend_spec.sh

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,3 @@ chain-spec-builder create \
1616

1717
mv chain_spec.json bulletin-westend-spec.json
1818
cp bulletin-westend-spec.json ./zombienet/bulletin-westend-spec.json
19-
20-
# Also copy to examples/zombienet/ for CI tests that run from examples directory
21-
mkdir -p ./examples/zombienet
22-
cp bulletin-westend-spec.json ./examples/zombienet/bulletin-westend-spec.json

0 commit comments

Comments
 (0)