Add Plugeth stack #14

Merged
roysc merged 24 commits from plugeth-stack into main 2024-07-10 01:28:10 +00:00
Showing only changes of commit 69457f83c3 - Show all commits

View File

@ -67,6 +67,12 @@ if [ ! -d "$test_deployment_dir" ]; then
fi fi
echo "deploy create test: passed" echo "deploy create test: passed"
dump_logs () {
echo "Test failed. Logs from stack:"
$SO_COMMAND deployment --dir $test_deployment_dir logs
}
trap dump_logs ERR
$SO_COMMAND deployment --dir $test_deployment_dir start $SO_COMMAND deployment --dir $test_deployment_dir start
geth_endpoint=localhost:$($SO_COMMAND deployment --dir $test_deployment_dir port fixturenet-eth-geth-1 8545 | cut -d: -f2) geth_endpoint=localhost:$($SO_COMMAND deployment --dir $test_deployment_dir port fixturenet-eth-geth-1 8545 | cut -d: -f2)
@ -109,12 +115,6 @@ log_info "Results of block height queries:"
echo "Initial block height: $initial_block_number" echo "Initial block height: $initial_block_number"
echo "Subsequent block height: $subsequent_block_number" echo "Subsequent block height: $subsequent_block_number"
dump_logs () {
echo "Test failed. Logs from stack:"
$SO_COMMAND deployment --dir $test_deployment_dir logs
}
trap dump_logs ERR
# Block height difference should be between 1 and some small number # Block height difference should be between 1 and some small number
[[ $block_number_difference -gt 1 && $block_number_difference -lt 100 ]] [[ $block_number_difference -gt 1 && $block_number_difference -lt 100 ]]