From 5326308521caf062d9b67fc78696979da0a1425c Mon Sep 17 00:00:00 2001 From: Prathamesh Musale Date: Tue, 2 Apr 2024 11:13:35 +0530 Subject: [PATCH] Remove tty flag from docker commands --- tests/fixturenet-laconicd/run-cli-test.sh | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/tests/fixturenet-laconicd/run-cli-test.sh b/tests/fixturenet-laconicd/run-cli-test.sh index 408ad79b..17fd8d27 100755 --- a/tests/fixturenet-laconicd/run-cli-test.sh +++ b/tests/fixturenet-laconicd/run-cli-test.sh @@ -5,11 +5,12 @@ if [ -n "$CERC_SCRIPT_DEBUG" ]; then set -x fi -echo "$(date +"%Y-%m-%d %T"): Running stack-orchestrator Laconicd fixturenet test" +echo "$(date +"%Y-%m-%d %T"): Running stack-orchestrator Laconic registry CLI tests" env cat /etc/hosts # Bit of a hack, test the most recent package -TEST_TARGET_SO=$( ls -t1 ./package/laconic-so* | head -1 ) +# TEST_TARGET_SO=$( ls -t1 ./package/laconic-so* | head -1 ) +TEST_TARGET_SO=laconic-so echo "$(date +"%Y-%m-%d %T"): Starting stack" TEST_AUCTION_ENABLED=true $TEST_TARGET_SO --stack fixturenet-laconicd deploy --cluster laconicd up @@ -22,13 +23,15 @@ $TEST_TARGET_SO --stack fixturenet-laconicd deploy --cluster laconicd ps laconicd_account_address=$(docker exec laconicd-laconicd-1 laconicd keys list | awk '/- address:/ {print $3}') # Copy over config -docker exec -it laconicd-cli-1 cp config.yml laconic-registry-cli/ +docker exec laconicd-cli-1 cp config.yml laconic-registry-cli/ # Wait for the laconid endpoint to come up +echo "Waiting for the RPC endpoint to come up" docker exec laconicd-laconicd-1 sh -c "curl --retry 10 --retry-delay 3 --retry-connrefused http://127.0.0.1:9473/api" # Run the tests -docker exec -it -e TEST_ACCOUNT=$laconicd_account_address laconicd-cli-1 sh -c 'cd laconic-registry-cli && yarn test' +echo "Running the tests" +docker exec -e TEST_ACCOUNT=$laconicd_account_address laconicd-cli-1 sh -c 'cd laconic-registry-cli && yarn test' # Clean up $TEST_TARGET_SO --stack fixturenet-laconicd deploy --cluster laconicd down --delete-volumes