From eb73367d6799d0bd4a29323a00a3054cd1d5fdb1 Mon Sep 17 00:00:00 2001 From: Thomas Haller Date: Mon, 30 Jan 2023 17:40:16 +0100 Subject: [PATCH] platform/tests: flush all tables in test_cache_consistency_routes() test (cherry picked from commit 8089133f1c8418bc76f8b63f968477c0873bc9ef) --- src/core/platform/tests/test-route.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/core/platform/tests/test-route.c b/src/core/platform/tests/test-route.c index 0d8449b117..569d371db0 100644 --- a/src/core/platform/tests/test-route.c +++ b/src/core/platform/tests/test-route.c @@ -2234,10 +2234,12 @@ test_cache_consistency_routes(gconstpointer test_data) continue; } nmtstp_run_command("ip -%c route flush dev %s" - "%s" /* redirect */ + " table %s" /* table */ + "%s" /* redirect */ "", addr_family_char[IS_IPv4], ifname, + nmtst_rand_select_str("main", "10222", "10223", "all"), nmtst_is_debug() ? "" : " &>/dev/null"); _ensure_onlink_routes(); goto done;