From 4f8fed77ebdafac3a6b67759a786c9aca4c10aa6 Mon Sep 17 00:00:00 2001 From: quake Date: Sat, 21 Dec 2024 16:09:46 +0900 Subject: [PATCH] chore: revert #401 --- .github/workflows/e2e.yml | 2 +- tests/nodes/start.sh | 7 ++----- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml index effee321..f9d55b49 100644 --- a/.github/workflows/e2e.yml +++ b/.github/workflows/e2e.yml @@ -63,7 +63,7 @@ jobs: fi # Prebuild the program so that we can run the following script faster - export FNN="$(cargo build --message-format=json-render-diagnostics | jq -js '[.[] | select(.reason == "compiler-artifact") | select(.executable != null)] | last | .executable')" + cargo build cd tests/deploy/udt-init && cargo build && cd - if [ ${{ matrix.workflow }} = "router-pay" ]; then export START_BOOTNODE=y diff --git a/tests/nodes/start.sh b/tests/nodes/start.sh index c79b82e8..f41ceaa2 100755 --- a/tests/nodes/start.sh +++ b/tests/nodes/start.sh @@ -32,16 +32,13 @@ echo "Initializing finished, begin to start services ...." sleep 1 ckb run -C "$deploy_dir/node-data" --indexer & +cargo build # Start the dev node in the background. cd "$nodes_dir" || exit 1 start() { - if [ -n "$FNN" ]; then - "$FNN" "$@" - else - cargo run -- "$@" - fi + ../../target/debug/fnn "$@" } if [ "$#" -ne 1 ]; then