@@ -111,25 +111,29 @@ bulletin-solo-zombienet-start runtime="bulletin-polkadot-runtime":
111111 # Create chain spec
112112 echo " Creating Westend chain spec..."
113113 ROOT_DIR=" {{ justfile_directory () }} /.."
114- # Ensure binaries are in PATH for the script
115- PATH=" $HOME/local_bulletin_testing/bin:$PATH" $ROOT_DIR/ scripts/ create_bulletin_westend_spec.sh
114+ # Ensure binaries are in PATH and run from root directory
115+ cd " $ROOT_DIR"
116+ PATH=" $HOME/local_bulletin_testing/bin:$PATH" ./ scripts/ create_bulletin_westend_spec.sh
117+ cd -
116118
117119 # Run zombienet from root directory so relative paths in config work correctly
120+ rm -rf {{ ZOMBIENET_DIR }}
118121 mkdir -p {{ ZOMBIENET_DIR }}
119122 cd " $ROOT_DIR"
120- POLKADOT_BINARY_PATH=$POLKADOT_BINARY_PATH \
123+ (yes y | POLKADOT_BINARY_PATH=$POLKADOT_BINARY_PATH \
121124 POLKADOT_PARACHAIN_BINARY_PATH=$POLKADOT_PARACHAIN_BINARY_PATH \
122- $ZOMBIENET_BIN -p native spawn --dir {{ ZOMBIENET_DIR }} " $ROOT_DIR/zombienet/bulletin-westend-local.toml" > {{ ZOMBIENET_DIR }} / zombienet.log 2 >&1 &
125+ $ZOMBIENET_BIN -p native spawn --dir {{ ZOMBIENET_DIR }} " $ROOT_DIR/zombienet/bulletin-westend-local.toml" > {{ ZOMBIENET_DIR }}/ zombienet.log 2 >&1 ) &
123126 cd -
124127 else # bulletin-polkadot-runtime
125128 echo " Setting up Polkadot runtime..."
126129 ROOT_DIR=" {{ justfile_directory () }} /.."
127130 # Build the node binary (which will build the runtime as a dependency)
128131 cargo build --release -p polkadot-bulletin-chain
132+ rm -rf {{ ZOMBIENET_DIR }}
129133 mkdir -p {{ ZOMBIENET_DIR }}
130134 cd " $ROOT_DIR"
131- POLKADOT_BULLETIN_BINARY_PATH=" $ROOT_DIR/target/release/polkadot-bulletin-chain" \
132- $ZOMBIENET_BIN -p native spawn --dir {{ ZOMBIENET_DIR }} " $ROOT_DIR/zombienet/bulletin-polkadot-local.toml" > {{ ZOMBIENET_DIR }} / zombienet.log 2 >&1 &
135+ (yes y | POLKADOT_BULLETIN_BINARY_PATH=" $ROOT_DIR/target/release/polkadot-bulletin-chain" \
136+ $ZOMBIENET_BIN -p native spawn --dir {{ ZOMBIENET_DIR }} " $ROOT_DIR/zombienet/bulletin-polkadot-local.toml" > {{ ZOMBIENET_DIR }}/ zombienet.log 2 >&1 ) &
133137 cd -
134138 fi
135139 ZOMBIENET_PID=$!
0 commit comments