From 568268d39b6460e70c5b4518a8bc02fa45cab45a Mon Sep 17 00:00:00 2001 From: RadekSabacky Date: Wed, 19 Nov 2025 14:32:33 +0100 Subject: [PATCH] + color exit_policy_run_tests --- scripts/nym-node-setup/network-tunnel-manager.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/nym-node-setup/network-tunnel-manager.sh b/scripts/nym-node-setup/network-tunnel-manager.sh index 0cc57d5fb7..67f22af298 100644 --- a/scripts/nym-node-setup/network-tunnel-manager.sh +++ b/scripts/nym-node-setup/network-tunnel-manager.sh @@ -927,7 +927,7 @@ exit_policy_run_tests() { while [[ $# -gt 0 ]]; do case "$1" in --skip-default-reject) skip_default=1; shift ;; - *) echo "unknown test option: $1"; return 1 ;; + *) echo -e "${RED}unknown test option: $1${NC}"; return 1 ;; esac done @@ -948,11 +948,11 @@ exit_policy_run_tests() { ((total += 1)) fi - echo "tests run: $total, failures: $failed" + echo -e "${YELLOW}tests run: ${GREEN}$total${YELLOW}, failures: ${RED}$failed${NC}" if [[ $failed -eq 0 ]]; then - echo "all exit policy tests passed" + echo -e "${GREEN}all exit policy tests passed${NC}" else - echo "some exit policy tests failed" + echo -e "${RED}some exit policy tests failed${NC}" fi return "$failed"