From dedbc9ef05a62afe78c992b6cbad6ec6ffabd0c9 Mon Sep 17 00:00:00 2001 From: Thomas Haller Date: Tue, 31 Jan 2023 18:32:31 +0100 Subject: [PATCH] platform/tests: suppress noisy output in test_cache_consistency_routes() test (cherry picked from commit de1dccba189ae3689fc9c41e34005ce15c790742) --- src/core/platform/tests/test-route.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/core/platform/tests/test-route.c b/src/core/platform/tests/test-route.c index bae38f265..0d8449b11 100644 --- a/src/core/platform/tests/test-route.c +++ b/src/core/platform/tests/test-route.c @@ -2166,8 +2166,12 @@ _ensure_onlink_routes(void) int i; for (i = 0; i < G_N_ELEMENTS(NMTSTP_ENV1_DEVICE_NAME) && NMTSTP_ENV1_DEVICE_NAME[i]; i++) { - nmtstp_run_command("ip route append 7.7.7.0/24 dev %s", NMTSTP_ENV1_DEVICE_NAME[i]); - nmtstp_run_command("ip route append 7:7:7::/64 dev %s", NMTSTP_ENV1_DEVICE_NAME[i]); + nmtstp_run_command("ip route append 7.7.7.0/24 dev %s%s", + NMTSTP_ENV1_DEVICE_NAME[i], + nmtst_is_debug() ? "" : " &>/dev/null"); + nmtstp_run_command("ip route append 7:7:7::/64 dev %s%s", + NMTSTP_ENV1_DEVICE_NAME[i], + nmtst_is_debug() ? "" : " &>/dev/null"); } }