CI cleanup
This commit is contained in:
parent
eed37820b5
commit
a167d0d331
|
@ -4,11 +4,11 @@
|
||||||
#
|
#
|
||||||
|
|
||||||
here=$(dirname "$0")
|
here=$(dirname "$0")
|
||||||
|
# shellcheck source=multinode-demo/common.sh
|
||||||
source "$here"/common.sh
|
source "$here"/common.sh
|
||||||
SOLANA_CONFIG_DIR=config-client-demo
|
SOLANA_CONFIG_DIR=config-client-demo
|
||||||
|
|
||||||
leader=${1:-${here}/..} # Default to local solana repo
|
leader=${1:-${here}/..} # Default to local solana repo
|
||||||
count=${2:-1}
|
|
||||||
|
|
||||||
rsync_leader_url=$(rsync_url "$leader")
|
rsync_leader_url=$(rsync_url "$leader")
|
||||||
|
|
||||||
|
@ -16,5 +16,6 @@ set -ex
|
||||||
mkdir -p $SOLANA_CONFIG_DIR
|
mkdir -p $SOLANA_CONFIG_DIR
|
||||||
rsync -vPz "$rsync_leader_url"/config/leader.json $SOLANA_CONFIG_DIR/
|
rsync -vPz "$rsync_leader_url"/config/leader.json $SOLANA_CONFIG_DIR/
|
||||||
|
|
||||||
|
# shellcheck disable=SC2086 # $solana_simple_client_demo should not be quoted
|
||||||
exec $solana_simple_client_demo \
|
exec $solana_simple_client_demo \
|
||||||
-l $SOLANA_CONFIG_DIR/leader.json -d
|
-l $SOLANA_CONFIG_DIR/leader.json -d
|
||||||
|
|
|
@ -81,7 +81,7 @@ fn main() {
|
||||||
loop {
|
loop {
|
||||||
let mut input = String::new();
|
let mut input = String::new();
|
||||||
match std::io::stdin().read_line(&mut input) {
|
match std::io::stdin().read_line(&mut input) {
|
||||||
Ok(n) => {
|
Ok(_) => {
|
||||||
match input.trim() {
|
match input.trim() {
|
||||||
// Check client balance
|
// Check client balance
|
||||||
"balance" => {
|
"balance" => {
|
||||||
|
@ -103,7 +103,7 @@ fn main() {
|
||||||
// Request amount is set in request_airdrop function
|
// Request amount is set in request_airdrop function
|
||||||
"airdrop" => {
|
"airdrop" => {
|
||||||
println!("Airdrop requested...");
|
println!("Airdrop requested...");
|
||||||
let airdrop = request_airdrop(&drone_addr, &client_pubkey);
|
let _airdrop = request_airdrop(&drone_addr, &client_pubkey);
|
||||||
// TODO: return airdrop Result from Drone
|
// TODO: return airdrop Result from Drone
|
||||||
sleep(Duration::from_millis(100));
|
sleep(Duration::from_millis(100));
|
||||||
println!(
|
println!(
|
||||||
|
|
Loading…
Reference in New Issue