From 3d9aff5d2387633d5a7c7d15794d2b8ccfb3b717 Mon Sep 17 00:00:00 2001 From: Zahary Karadjov Date: Tue, 16 Jun 2020 22:24:29 +0300 Subject: [PATCH] Fix some logical typos introduced in the rebase --- tests/simulation/start-in-tmux.sh | 2 +- tests/simulation/start.sh | 21 +++++++++++---------- vendor/nim-chronicles-tail | 2 +- vendor/nim-libbacktrace | 2 +- 4 files changed, 14 insertions(+), 13 deletions(-) diff --git a/tests/simulation/start-in-tmux.sh b/tests/simulation/start-in-tmux.sh index bd03b58d2..8a6510fff 100755 --- a/tests/simulation/start-in-tmux.sh +++ b/tests/simulation/start-in-tmux.sh @@ -5,7 +5,7 @@ set -eo pipefail cd "$(dirname "$0")" TMUX_CMD="${TMUX_CMD:-tmux}" -USE_TMUX="${USE_TMUX:-no}" +USE_TMUX="${USE_TMUX:-yes}" type "$TMUX_CMD" &>/dev/null || { echo "${TMUX_CMD}" is missing; USE_TMUX="no"; } if [[ "$USE_TMUX" != "no" ]]; then diff --git a/tests/simulation/start.sh b/tests/simulation/start.sh index a30768fb3..53f6d7c8a 100755 --- a/tests/simulation/start.sh +++ b/tests/simulation/start.sh @@ -3,6 +3,7 @@ set -eo pipefail # To allow overriding the program names +TMUX_CMD="${TMUX_CMD:-tmux}" MULTITAIL_CMD="${MULTITAIL_CMD:-multitail}" GANACHE_CMD="${GANACHE_CMD:-ganache-cli}" PROMETHEUS_CMD="${PROMETHEUS_CMD:-prometheus}" @@ -14,22 +15,22 @@ WAIT_GENESIS="${WAIT_GENESIS:-no}" USE_MULTITAIL="${USE_MULTITAIL:-no}" if [[ "$USE_MULTITAIL" != "no" ]]; then - type "$MULTITAIL" &>/dev/null || { echo "${MULTITAIL}" is missing; USE_MULTITAIL="no"; } + type "$MULTITAIL_CMD" &>/dev/null || { echo "${MULTITAIL_CMD}" is missing; USE_MULTITAIL="no"; } fi -USE_TMUX="${USE_TMUX:-yes}" -if [[ "$USE_TMUX" == "yes" ]]; then - type "$TMUX" &>/dev/null || { echo "${TMUX}" is missing; USE_TMUX="no"; } +USE_TMUX="${USE_TMUX:-no}" +if [[ "$USE_TMUX" != "no" ]]; then + type "$TMUX_CMD" &>/dev/null || { echo "${TMUX_CMD}" is missing; USE_TMUX="no"; } fi USE_GANACHE="${USE_GANACHE:-yes}" if [[ "$USE_GANACHE" == "yes" ]]; then - type "$GANACHE" &>/dev/null || { echo $GANACHE is missing; USE_GANACHE="no"; } + type "$GANACHE_CMD" &>/dev/null || { echo $GANACHE_CMD is missing; USE_GANACHE="no"; } fi USE_PROMETHEUS="${USE_PROMETHEUS:-yes}" if [[ "$USE_PROMETHEUS" == "yes" ]]; then - type "$PROMETHEUS" &>/dev/null || { echo $PROMETHEUS is missing; USE_PROMETHEUS="no"; } + type "$PROMETHEUS_CMD" &>/dev/null || { echo $PROMETHEUS_CMD is missing; USE_PROMETHEUS="no"; } fi USE_CTAIL="${USE_CTAIL:-yes}" @@ -132,10 +133,6 @@ if [ ! -f "${SNAPSHOT_FILE}" ]; then fi fi -if [[ "$USE_TMUX" == "yes" ]]; then - $TMUX_CMD select-window -t "${TMUX_SESSION_NAME}:sim" -fi - function run_cmd { i=$1 CMD=$2 @@ -175,6 +172,10 @@ if [ "$USE_GANACHE" != "no" ]; then fi fi +if [[ "$USE_TMUX" == "yes" ]]; then + $TMUX_CMD select-window -t "${TMUX_SESSION_NAME}:sim" +fi + # Delete any leftover address files from a previous session if [ -f "${MASTER_NODE_ADDRESS_FILE}" ]; then rm "${MASTER_NODE_ADDRESS_FILE}" diff --git a/vendor/nim-chronicles-tail b/vendor/nim-chronicles-tail index 7064429aa..858e4ea2e 160000 --- a/vendor/nim-chronicles-tail +++ b/vendor/nim-chronicles-tail @@ -1 +1 @@ -Subproject commit 7064429aa541a7e08c8febd40470b30ae9c7c2e6 +Subproject commit 858e4ea2edf090980b070d668f0d92ad801d099e diff --git a/vendor/nim-libbacktrace b/vendor/nim-libbacktrace index 2ddb255b1..35eeb035b 160000 --- a/vendor/nim-libbacktrace +++ b/vendor/nim-libbacktrace @@ -1 +1 @@ -Subproject commit 2ddb255b145e5d2f38b1cddcccbed3db8fe0d960 +Subproject commit 35eeb035b2b8e1dc770efdf76a0e4c5f369d8a0a