From 665f093bcf1e3506ed7db66cd2d5f5fa6a5c3288 Mon Sep 17 00:00:00 2001 From: Tommy Verrall Date: Thu, 23 Feb 2023 12:22:31 +0200 Subject: [PATCH] push path changes --- tests/nym-client-binary-check.sh | 4 ++-- tests/nym-gateway-binary-check.sh | 7 +++---- tests/nym-mixnode-binary-check.sh | 4 ++-- tests/nym-network-requester-binary-check.sh | 4 ++-- tests/nym-socks-5-binary-check.sh | 4 ++-- 5 files changed, 11 insertions(+), 12 deletions(-) diff --git a/tests/nym-client-binary-check.sh b/tests/nym-client-binary-check.sh index d9954f7f52..7d78b55dbb 100755 --- a/tests/nym-client-binary-check.sh +++ b/tests/nym-client-binary-check.sh @@ -57,7 +57,7 @@ fi check_nym_client_binary_build -first_init=$(cat /root/.nym/clients/${ID}/config/config.toml | grep -v "^version =") +first_init=$(cat ${HOME}/.nym/clients/${ID}/config/config.toml | grep -v "^version =") #---------------------------------------------------------------------------------------------------------- # lets remove the binary then navigate to the target/release directory for checking the latest version @@ -86,7 +86,7 @@ echo "-------------------------------------" check_nym_client_binary_build -second_init=$(cat /root/.nym/clients/${ID}/config/config.toml | grep -v "^version =") +second_init=$(cat ${HOME}/.nym/clients/${ID}/config/config.toml | grep -v "^version =") diff -w <(echo "$first_init") <(echo "$second_init") diff --git a/tests/nym-gateway-binary-check.sh b/tests/nym-gateway-binary-check.sh index 4e350d5a99..a2fcd814d5 100755 --- a/tests/nym-gateway-binary-check.sh +++ b/tests/nym-gateway-binary-check.sh @@ -37,8 +37,7 @@ check_gateway_binary_build() if [ -f "$BINARY_NAME" ]; then VALUE=${VALUE%\"} #------------------------------------------------------ - USER=$(whoami) - DATA_STORE="/${USER}/.nym/gateways/${ID}/data/db.sqlite" + DATA_STORE="${HOME}/.nym/gateways/${ID}/data/db.sqlite" #------------------------------------------------------ # do asserts here based upon the output @@ -58,7 +57,7 @@ fi check_gateway_binary_build # whoami # this is dependant on where it runs on ci potentially, will need to tweak this in the future -first_init=$(cat /root/.nym/gateways/${ID}/config/config.toml | grep -v "^\[gateway\]$" | grep -v "^version =" | grep -v "^cosmos_mnemonic =") +first_init=$(cat ${HOME}/.nym/gateways/${ID}/config/config.toml | grep -v "^\[gateway\]$" | grep -v "^version =" | grep -v "^cosmos_mnemonic =") #lets remove the binary then navigate to the target/release directory for checking the latest version if [ -f "$BINARY_NAME" ]; then @@ -84,7 +83,7 @@ check_gateway_binary_build echo "diff the config files after each init" echo "-------------------------------------" -second_init=$(cat /root/.nym/gateways/${ID}/config/config.toml | grep -v "^\[gateway\]$" | grep -v "^version =" | grep -v "^cosmos_mnemonic =") +second_init=$(cat ${HOME}/.nym/gateways/${ID}/config/config.toml | grep -v "^\[gateway\]$" | grep -v "^version =" | grep -v "^cosmos_mnemonic =") diff -w <(echo "$first_init") <(echo "$second_init") diff --git a/tests/nym-mixnode-binary-check.sh b/tests/nym-mixnode-binary-check.sh index 6b32f76be8..41c46a9211 100755 --- a/tests/nym-mixnode-binary-check.sh +++ b/tests/nym-mixnode-binary-check.sh @@ -48,7 +48,7 @@ check_mixnode_binary_build() { check_mixnode_binary_build # whoami # this is dependant on where it runs on ci potentially, will need to tweak this in the future -first_init=$(cat /root/.nym/mixnodes/${ID}/config/config.toml | grep -v "^\[mixnode\]$" | grep -v "^version =") +first_init=$(cat ${HOME}/.nym/mixnodes/${ID}/config/config.toml | grep -v "^\[mixnode\]$" | grep -v "^version =") #lets remove the binary then navigate to the target/release directory for checking the latest version if [ -f "$BINARY_NAME" ]; then @@ -74,7 +74,7 @@ check_mixnode_binary_build echo "diff the config files after each init" echo "-------------------------------------" -second_init=$(cat /root/.nym/mixnodes/${ID}/config/config.toml | grep -v "^\[mixnode\]$" | grep -v "^version =") +second_init=$(cat ${HOME}/.nym/mixnodes/${ID}/config/config.toml | grep -v "^\[mixnode\]$" | grep -v "^version =") diff -w <(echo "$first_init") <(echo "$second_init") diff --git a/tests/nym-network-requester-binary-check.sh b/tests/nym-network-requester-binary-check.sh index f22f0c9351..5486e45cea 100755 --- a/tests/nym-network-requester-binary-check.sh +++ b/tests/nym-network-requester-binary-check.sh @@ -56,7 +56,7 @@ fi check_nym_network_requester_binary_build -first_init=$(cat /root/.nym/service-providers/network-requester/${ID}/config/config.toml | grep -v "^version =") +first_init=$(cat ${HOME}/.nym/service-providers/network-requester/${ID}/config/config.toml | grep -v "^version =") #---------------------------------------------------------------------------------------------------------- # lets remove the binary then navigate to the target/release directory for checking the latest version @@ -85,7 +85,7 @@ echo "-------------------------------------" check_nym_network_requester_binary_build -second_init=$(cat /root/.nym/service-providers/network-requester/${ID}/config/config.toml | grep -v "^version =") +second_init=$(cat ${HOME}/.nym/service-providers/network-requester/${ID}/config/config.toml | grep -v "^version =") diff -w <(echo "$first_init") <(echo "$second_init") diff --git a/tests/nym-socks-5-binary-check.sh b/tests/nym-socks-5-binary-check.sh index 5a9a8e7ef9..af99902603 100755 --- a/tests/nym-socks-5-binary-check.sh +++ b/tests/nym-socks-5-binary-check.sh @@ -58,7 +58,7 @@ fi check_nym_socks5_client_binary_build -first_init=$(cat /root/.nym/socks5-clients/${ID}/config/config.toml | grep -v "^version =") +first_init=$(cat ${HOME}/.nym/socks5-clients/${ID}/config/config.toml | grep -v "^version =") #---------------------------------------------------------------------------------------------------------- # lets remove the binary then navigate to the target/release directory for checking the latest version @@ -87,7 +87,7 @@ echo "-------------------------------------" check_nym_socks5_client_binary_build -second_init=$(cat /root/.nym/socks5-clients/${ID}/config/config.toml | grep -v "^version =") +second_init=$(cat ${HOME}/.nym/socks5-clients/${ID}/config/config.toml | grep -v "^version =") diff -w <(echo "$first_init") <(echo "$second_init")