platform/tests: suppress noisy output in test_cache_consistency_routes() test

(cherry picked from commit de1dccba18)
This commit is contained in:
Thomas Haller 2023-01-31 18:32:31 +01:00
parent d9d33e2acc
commit dedbc9ef05
No known key found for this signature in database
GPG key ID: 29C2366E4DFC5728

View file

@ -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");
}
}